Re: PHP 4.0 Bug #3793 Updated: session.gc_maxlifetime does not work

From: Date: Wed, 12 Jul 2000 14:27:05 +0000
Subject: Re: PHP 4.0 Bug #3793 Updated: session.gc_maxlifetime does not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-24315@lists.php.net to get a copy of this message
Hello, I am sorry, but the reported errors are still in verson 4.0.1 pl2. "session.gc_probability = 100" setting in PHP.INI delete ALL other sessions (only one session can be used at the time - if are connected 2 clients to server, the second client owerwrites or deletes session of the first client, etc.). "session.gc_maxlifetime" also does not work = I can read values from the session while the session is manualy deleted (when "session.gc_probability is set to 1). The session_destroy() function also does not work (Values of variables are still in the session file after calling this function). Other session related functions works OK. Tested OS: Windows 2000 Professional PHP version: 4.0.1 pl2 with included PHP.INI-DIST (CGI) WWW server: Apache 1.3.12 running as a service. ---------------------- Session settings from my PHP.INI (for testing use) [Session]
session.save_handler      = files   ; handler used to store/retrieve data
session.save_path         = C:/WINNT/Temp    ; argument passed to save_handler
                                   ; in the case of files, this is the
                                   ; path where data files are stored
session.use_cookies       = 0       ; whether to use cookies
session.name              = PHPSESSID
                                   ; name of the session
                                   ; is used as cookie name
session.auto_start        = 0       ; initialize session on request startup
session.cookie_lifetime   = 0       ; lifetime in seconds of cookie
                                   ; or if 0, until browser is restarted
session.cookie_path       = /       ; the path the cookie is valid for
session.cookie_domain     =         ; the domain the cookie is valid for
session.serialize_handler = php     ; handler used to serialize data
                                   ; php is the standard serializer of PHP
session.gc_probability    = 100 (or 1)     ; percentual probability that the
                                   ; 'garbage collection' process is started
                                   ; on every session initialization
session.gc_maxlifetime    = 60    ; after this number of seconds, stored
                                   ; data will be seen as 'garbage' and
                                   ; cleaned up by the gc process
session.referer_check     =         ; check HTTP Referer to invalidate
                                   ; externally stored URLs containing ids
session.entropy_length    = 0       ; how many bytes to read from the file
session.entropy_file      =         ; specified here to create the session id
; session.entropy_length    = 16
; session.entropy_file      = /dev/urandom
session.cache_limiter     = nocache ; set to {nocache,private,public} to
                                   ; determine HTTP caching aspects
session.cache_expire      = 180    ; document expires after n minutes
----------------------- Best regards, Jiri Kori PS: Sorry for my English :-)
From: Bug Database <php-dev@lists.php.net> To: kori_mail@hotmail.com Subject: PHP 4.0 Bug #3793 Updated: session.gc_maxlifetime does not work Date: 6 Jul 2000 06:49:19 -0000 ID: 3793 Updated by: sas Reported By: kori_mail@hotmail.com Status: Closed Bug Type: Session related Assigned To: Comments: This has been fixed in PHP 4.0.1. Please upgrade. Full Bug description available at: http://bugs.php.net/?id=3793
________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

« previous php.dev (#24315) next »