ID:               27711
 User updated by:  mazsolt at yahoo dot com
 Reported By:      mazsolt at yahoo dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Session related
 Operating System: IIS 6.0
 PHP Version:      4.3.4
 New Comment:

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....


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

[2004-03-29 16:38:18] [EMAIL PROTECTED]

What file system is your temp directory on (ntfs, or fat32)?

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

[2004-03-26 05:27:20] mazsolt at yahoo dot com

Description:
------------
this post seems to the "Bug #12888 garbage collector" post. I had the
same problems, but I tested your advices, too.



I made a script which handles the session's operations. One of them was
the session's garbage collector. the implicit gc has the probability to
start = 1/100 

In my customized session-handler I changed this value to 100/100. the
script works, it deletes the old datas every time. 



If I handle sessions with the implicit garbage collector from PHP, it
doesn't want to delete anything. 

I changed the configuration file setting to: 

-- 

session.gc_probability 100 

session.gc_divisor 100 

-- 

if I start a script which calls session_start(), it won't delete the
old session datas (from a week ago...) 



It wants to work.it's a windows problem???

there is my script here:

Reproduce code:
---------------
<?

ini_set("session.gc_probability",100);

ini_set("session.gc_divisor",100);

ini_set("session.gc_maxlifetime",10); 

session_start();

?>



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


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

Reply via email to