how do i time out a particular session after a fixed time interval?
does it have to do something with time() and session_destroy()?
Printable View
how do i time out a particular session after a fixed time interval?
does it have to do something with time() and session_destroy()?
session_destroy() is used to manually kill a session but it doesn't unset any of the global variables associated with the session (use session_unset() to do that).
To set a time out, I'm pretty sure you need add this to your php.ini
session.gc_maxlifetime = time in seconds
You might also want to set session.cookie_lifetime to the same figure.