Hi Andrey, is there no way to control the lifetime without modifiying the php.ini? I am not on my own server. The ISP controles this file.
Would you suggest to go for a self made session? Andy "Andrey Hristov" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 027901c1c91d$cce57970$0b01a8c0@ANDreY">news:027901c1c91d$cce57970$0b01a8c0@ANDreY... > 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