ID: 27711 Comment by: SKJoy2001 at Yahoo dot Com Reported By: mazsolt at yahoo dot com Status: No Feedback Bug Type: Session related Operating System: win32 + iis 6.0 PHP Version: 4.3.4 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). it's much like a trigger that fires to some wrong target. Previous Comments: ------------------------------------------------------------------------ [2004-04-12 17:56:24] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2004-04-07 10:56:54] [EMAIL PROTECTED] Everything and anything can affect it when speaking of windows..so make it have ALL rights on the files.. ------------------------------------------------------------------------ [2004-04-07 09:22:20] mazsolt at yahoo dot com all the session files are placed in the ./tmp directory, which is a folder all of the current virtual directories. the owner is IUSER_pcname for all. it has all rights, except change rights. I don't think this affects the gc ------------------------------------------------------------------------ [2004-04-07 08:58:05] [EMAIL PROTECTED] Are you sure the file permissions / owners are the same..? (this worked fine with latest CVS in Linux, WHEN I ran the script as root :) So try the latest STABLE snapshot too. ------------------------------------------------------------------------ [2004-03-30 02:51:10] mazsolt at yahoo dot com operating system: windows 2003 (ntfs). I've read in the documentation, that older filesystems cannot keep track the modify time, and the garbage collector is checking the modify time, not the last access time. all three functions: - filectime() - fileatime() - filemtime() seems to work correctly. I believe that the problem is elsewhere. Couldn't it be , that GC simply doesn't work on windows' systems??? I repeat, when I wrote my own session_handler, the gc was executed after the open & read functions, but before the write & close functions. I tested this very easy, putting an echo "function_name" in each of them. but the implicit gc doesn't move anything.... ------------------------------------------------------------------------ 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/27711 -- Edit this bug report at http://bugs.php.net/?id=27711&edit=1