#47731 [Opn->Bgs]: Misleading doc in php.ini for session.save_path and/or session.gc_maxlifetime

From: Date: Fri, 08 May 2009 16:00:55 +0000
Subject: #47731 [Opn->Bgs]: Misleading doc in php.ini for session.save_path and/or session.gc_maxlifetime
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2215@lists.php.net to get a copy of this message
 ID:               47731
 Updated by:       danbrown@php.net
 Reported By:      chcaron at nrcan dot gc dot ca
-Status:           Open
+Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: Linux
 PHP Version:      Irrelevant
 New Comment:

This is two separate sections that, while related, are still not one in

the same.  Perhaps it could be worded better, but I would not classify

this as a bug.


Previous Comments:
------------------------------------------------------------------------

[2009-03-20 13:28:51] chcaron at nrcan dot gc dot ca

Description:
------------
In the php.ini file, here's what it says (for session.save_path):

##START##
; NOTE: If you are using the subdirectory option for storing session
files
;       (see session.save_path above), then garbage collection does
*not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other
method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24
minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm 
##END##

On the website, here's what it says
(http://ca3.php.net/manual/en/session.configuration.php#ini.session.save-path):

##START##
Also note that if N is used and greater than 0 then automatic garbage
collection will not be performed
##END##

The documentation in php.ini is misleading as it makes you think that
using the session.save_path variable will prevent the garbage collector
to work. This isn't true. It would happen *only* if you are specifying
"N", and it "N" would be greater than 0.

Expected result:
----------------
The documentation in the php.ini file (either for "session.save_path"
or "session.gc_maxlifetime") should include the same information as
found on the website.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47731&edit=1



Thread (2 messages)

« previous php.doc.bugs (#2215) next »