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? Quote 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... Quote 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 */ Quote Link to comment https://forums.phpfreaks.com/topic/51872-session-expiration-dates/#findComment-255709 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.