hi all,
I need to remove data when user leaves my webapplication. I fire an unload
event (that calls a php script) but sometimes fails, so I need a more secure
I wonder if session_set_save_handler is what I need. I think so but not

So, EVEN if  the user leaves my webapplication, will his session be
destroyed (after reaching $maxlifetime) and, as consequence, the associated
functions will be executed (functions like deleting from database, user

In PHP documentation, it's said:"session.gc_maxlifetime specifies the number
of seconds after which data will be seen as 'garbage' and cleaned up.
Garbage collection occurs during session start. "

And..."session.gc_probability in conjunction with session.gc_divisor is used
to manage probability that the gc (garbage collection) routine is
started.Defaults to 1"   ----> does it mean that only 1% of the old sessions
(and associated actions) are deleted each time?

Some idea?

thanks alot, 
View this message in context: 
Sent from the PHP - General mailing list archive at Nabble.com.

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

Reply via email to