faqts : Computers : Programming : Languages : PHP : Common Problems : Sessions and State

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 11 people (100%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How can i give a max life time for a session, if the session is idle for some time?

Aug 9th, 2001 02:29
Luboslav Gabal, Sheni R. Meledath,


you must to change your php configuration file:
session.gc_maxlifetime = time_in_seconds
after this time will be session seen as "garbage" and cleaned up by 
garbage collection process