paruby Posted July 12, 2007 Share Posted July 12, 2007 i know there is a function called session_destroy() that can be called to kill all session vars. Is there a way to have the session variables "expire" after a time of iniactivity? Example - If a user doesn't click the logout link to do an actual session_destroy(), can the session timeout after a given timeframe? Thanx! Pete Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 12, 2007 Share Posted July 12, 2007 Yeah if you keep renewing the sesions on every sessioned page and simply make the timeout time be that inactivity period you are seeking you will have what you are looking for. Quote Link to comment Share on other sites More sharing options...
trq Posted July 12, 2007 Share Posted July 12, 2007 Sessions natively timeout after inactivity. If you want to change the length of time a session will last check out the appendix to ini_set. Quote Link to comment Share on other sites More sharing options...
paruby Posted July 12, 2007 Author Share Posted July 12, 2007 Is that the session.cache_expire function? Quote Link to comment 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.