PDA

View Full Version : session(expire)



forlife
October 22nd, 2002, 15:38
Is there any command/function in php that terminates a session after a time if the user isnt active.
Lets say the user sign into his/her account and then leaves. For security reasons i want the session to expire after a time. Any ideas?

Thanks

Salam
October 23rd, 2002, 00:47
session_set_cookie_params($expire);
// $expire is expire time in seconds .