Re: [PHP] sessions garbadge

2003-03-13 Thread CPT John W. Holmes
> > > My gc_maxlifetime = 3600 (1 hour) and my probability = 100
> > , just for
> > > testing . When i create a session on my site and i dont log
> > out , the
> > > session var will still remain on the server , ok , after an
> > hour (not
> > > exactly an hour) , when i surf the site , the collector
> > destroys that
> > var
> > > on
> > > the server (linux server) ! That is how it should work ! But when i
> > create
> > > a
> > > session at say 23:36 , the session var will still be on the
> > server at
> > 8:16
> > > (after the carbadge collector came around) , why does this happen ,
> > does
> > > php
> > > work in a 12 cicle only , or what is wrong ?
> >
> > How do you know the garbage collector was started? There is a (by
> > default) 1% chance
>
> Ahem!  Even when poster has reported that "... my probability = 100 ..."?

Yeah, i'm an idiot. Maybe I should read the questions? I'll start doing that
when newbies start searching the archives!! :)

I don't know why the session isn't deleting.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sessions garbadge

2003-03-13 Thread Ford, Mike [LSS]
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: 13 March 2003 10:24
> 
> > My gc_maxlifetime = 3600 (1 hour) and my probability = 100 
> , just for
> > testing . When i create a session on my site and i dont log 
> out , the
> > session var will still remain on the server , ok , after an 
> hour (not
> > exactly an hour) , when i surf the site , the collector 
> destroys that
> var
> > on
> > the server (linux server) ! That is how it should work ! But when i
> create
> > a
> > session at say 23:36 , the session var will still be on the 
> server at
> 8:16
> > (after the carbadge collector came around) , why does this happen ,
> does
> > php
> > work in a 12 cicle only , or what is wrong ?
> 
> How do you know the garbage collector was started? There is a (by
> default) 1% chance

Ahem!  Even when poster has reported that "... my probability = 100 ..."?

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sessions garbadge

2003-03-13 Thread John W. Holmes
> My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for
> testing . When i create a session on my site and i dont log out , the
> session var will still remain on the server , ok , after an hour (not
> exactly an hour) , when i surf the site , the collector destroys that
var
> on
> the server (linux server) ! That is how it should work ! But when i
create
> a
> session at say 23:36 , the session var will still be on the server at
8:16
> (after the carbadge collector came around) , why does this happen ,
does
> php
> work in a 12 cicle only , or what is wrong ?

How do you know the garbage collector was started? There is a (by
default) 1% chance that upon each request to your server, garbage
collection will be initiated. So, even though you have your time limit
set for an hour, it could be longer than that before the actual 1%
chance is triggered. It could take quite a while longer if there is not
a whole lot of traffic to your site. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sessions garbadge

2003-03-12 Thread Shaun van den Berg
Hi,

My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for
testing . When i create a session on my site and i dont log out , the
session var will still remain on the server , ok , after an hour (not
exactly an hour) , when i surf the site , the collector destroys that var on
the server (linux server) ! That is how it should work ! But when i create a
session at say 23:36 , the session var will still be on the server at 8:16
(after the carbadge collector came around) , why does this happen , does php
work in a 12 cicle only , or what is wrong ?

Thanks
Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php