PHP4 sessions or self made sessions. If PHP4 there is an option in php.ini to set about how frequently the GC(garbage collector) will be started. Otherwise if self made and using a DB for backend - add new field last_time , and on every page request do "Delete from session_table where last_time<now() interval 60 min"; not sure for the query but that is the idea.
Best regards, Andrey Hristov ----- Original Message ----- From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 11, 2002 6:46 PM Subject: [PHP] limiting the livetime of a session possible? > Hi there, > > I am building a user registering module and now I am wondering if there > would be a way to destroy the session if the user was inactive for an > specified amount of time. > > I found an article on that with following line: > If you propagate the session ID via cookies, you can influence the cookies > lifetime with the configuration value lifetime. > > Which configuration? I tryed session_set_cookie_params(10); But this is only > valid for the same script. > > Does anybody have a good idea, or possibly a hint? > > Thanx for any help, > > Andy > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php