可以在 php.ini 里修改 session 档案残存的时间session.gc_maxlifetime = 1440 ; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process默认是 1440 秒,24分钟
於php.ini中設置有關: ; Document expires after n minutes. session.cache_expire = 180 這是網頁過期時間設置;; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetime = 1440 這是session過期自動清除的時間設置sg(黛眉猫):你到底遇到的是哪一種問題呀?
例如httpd.conf、php.ini可是试下来我也不确定到底怎么回事,应该修改哪些参数
有两种方法
一、修改服务器php设置php.ini,具体哪个忘了
二、程序中将session id保存在cookie中,cookie可以设置生命
; data will be seen as 'garbage' and
; cleaned up by the gc process默认是 1440 秒,24分钟
可以根据你的需要更改。-------------------------
水中的鱼,自由自在的呼吸。
我的论坛:http://chinesehis.com/starry/index.php
; Document expires after n minutes.
session.cache_expire = 180
這是網頁過期時間設置;; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
這是session過期自動清除的時間設置sg(黛眉猫):你到底遇到的是哪一種問題呀?
一登录就过期,根本没有办法登录,但与此同时其他通过hub联接的都是非常正常。我们在手提上进行测试,发现session确实生成过,只是不知道什么原因就过期了。后来我们把手提放到hub之下连接,一切ok.随后我们把另一台hub下一切正常的机器直接连接,和手提一样的问题。我们还交换网卡进行测试。如故。我们修改了一切所能想到修改的参数。apache下httpd.conf, php.ini昏死
和硬件没有关系
不可能