ID:               14798
 Comment by:       SKJoy2001 at Yahoo dot Com
 Reported By:      bs_php at infeer dot com
 Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Windows ONLY
 PHP Version:      4.1.1
 New Comment:

well, though the issue is very old, but as I could discover what really
happens right now, i am posting.

this trouble is not a windows issue, but a PHP issue. it happens for
the way GC is implemented in PHP.

when a request is made, PHP doesn't really check for the session time
out for the requested session. instead, PHP checks the other sessions
for time out & deletes the files if the session associated to that file
is timed out.

so, your session will never be timed out, until another session request
comes to PHP after the amount of time your session is suppose to time
out.

this is not an issue any developer can solve, but this has to be solved
by PHP itself (if you really find it a trouble like me, there are logics
in favoure & against regarding what PHP does now).


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

[2002-08-16 21:33:22] [EMAIL PROTECTED]

The fact that the filebased session handler needs a filesystem with
atime support has now been documented.

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

[2002-08-16 21:02:44] [EMAIL PROTECTED]

I really don't see anybody with any interest in writing code to make
this work on FAT filesystems.  Don't run web servers on crap
filesystems.  If you do, write your own session handler.  Same goes for
filesystems where file modification timestamps are ignored.  Write your
own session handler and manage the garbage collection yourself.  We'll
need to document this, of course, so marking this as a documentation
problem.

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

[2002-07-02 10:50:31] chlabicz at plusnet dot pl

The bug almost killed me.

>[23 Jan 6:00am] [EMAIL PROTECTED] 
>Could you try see if it helps?
>session.save_path = C:\tmp\path\for\session\data
>.....
But wouldn't the
session.gc_probability = 0
do the same (for me it seems to work fine).

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

[2002-02-26 06:37:27] [EMAIL PROTECTED]

Please do _NOT_ add comment if you are using other than Windows.

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

[2002-02-26 03:14:52] zhaoxd at capitel dot com dot cn

My Operating System is Linux,and I found the same error.
session.gc_maxlifetime = 60
It's doesn't work

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/14798

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

Reply via email to