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 option. I wonder if session_set_save_handler is what I need. I think so but not sure.
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 folders...)? 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, Pere Roca -- View this message in context: http://www.nabble.com/removing-data-from-old-users-%28session_set_save_handler---%29-tp23522607p23522607.html 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