The Little Guy Posted May 17, 2007 Share Posted May 17, 2007 How do I set session expiration dates so the session will expire if it has been inactive for 20 minutes? Link to comment https://forums.phpfreaks.com/topic/51872-session-expiration-dates/ Share on other sites More sharing options...
clown[NOR] Posted May 17, 2007 Share Posted May 17, 2007 read about session_cache_expire() ... i think that's what you're looking for... Link to comment https://forums.phpfreaks.com/topic/51872-session-expiration-dates/#findComment-255686 Share on other sites More sharing options...
phast1 Posted May 17, 2007 Share Posted May 17, 2007 You can also specify an expire time on a per-cookie basis when you set the cookie, like this: setcookie("TestCookie", $value, time()+3600); /* expire in 1 hour */ Link to comment https://forums.phpfreaks.com/topic/51872-session-expiration-dates/#findComment-255709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.