Re: Sessions...
| From: | Marcus Haase | Date: | Thu, 31 Jul 2003 15:18:38 +0000 |
| Subject: | Re: Sessions... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20951@lists.php.net to get a copy of this message | ||
Try upgrading to php 4.3.0 or higher, i have been experiencing the same problems as you did untill I switched to 4.3.1
Good luck.
Marcus
Brian McGarvie wrote:
I use a session for a syste to varify login... However sometimes the session seems to timeout (as I'd expect) however it seems random, sometimes it's within a few mins of 'inactivity' and other times i have seen it not timing out if left 'logged in' overnight and continue work in the morning. How can I stop this and/or bring some kind of consistency? Below is the session part of my php.ini with the comments stripped out to save needless text :) Thanks In Advance.... OS: Xeon 2Ghz, 1gb Ram, Windows 2000 Server - SP 4, NTFS disks types, PHP Version 4.3.0RC3, IIS (4 is it that's on Win 2000). [Session] session.save_handler = filessession.save_path = C:\PHP\sessiondata ; argument passed to save_handlersession.use_cookies = 1 ; session.use_only_cookies = 1 ; Name of the session (used as cookie name). session.name = PHPSESSID session.auto_start = 0 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. session.cookie_lifetime = 0 session.cookie_path = / ; The domain for which the cookie is valid. session.cookie_domain = ; Handler used to serialize data. php is the standard serializer of PHP. session.serialize_handler = php session.gc_probability = 1session.gc_dividend = 100session.gc_maxlifetime = 1440 session.bug_compat_42 = 1 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom ; Set to {nocache,private,public,} to determine HTTP caching aspects or leave this empty to avoid sending anti-caching headers. session.cache_limiter = nocache ; Document expires after n minutes. session.cache_expire = 180 session.use_trans_sid = 0 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="