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: win32 + iis 6.0
PHP Version: 4.3.4
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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....
------------------------------------------------------------------------
[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