#27711 [Opn->Fbk]: implicit garbage collector for sessions in PHP

From: Date: Mon, 29 Mar 2004 21:38:18 +0000
Subject: #27711 [Opn->Fbk]: implicit garbage collector for sessions in PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57058@lists.php.net to get a copy of this message
 ID:               27711
 Updated by:       edink@php.net
 Reported By:      mazsolt at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: IIS 6.0
 PHP Version:      4.3.4
 New Comment:

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


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

[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


Thread (8 messages)

« previous php.bugs (#57058) next »