Forum Moderators: coopster
You can be more strict about how long a session lives for though.
I store a timestamp in the session. I want my sessions to last 5 minutes (for code thats 300 secs) so I compare the last access time every time someone hits a page. If the present timestamp is less than 300 seconds bigger than the one in the session then I change the session timestamp to the current one. If it has been more than 300 seconds since their last access then I destroy the session and send them to the login page.