PHP Session Timeout

Doesn't matter / Doesn't matter
January 23, 2009 at 16:43:42
Specs: web browser, doesn't matter
I'm looking for a way to enforce a PHP session timeout after X minutes regardless of user activity. The problem is that all the PHP session timeout examples I've seen only take effect *on the next action* the user takes after the session timeout interval.

I found this "hack" that forces the browser to automatically refresh the page even if no human is around:

<meta http-equiv="refresh" content="605">

but I'm curious if there's a better way?

See More: PHP Session Timeout

Report •

March 16, 2009 at 09:07:25
Hi, here are some additional ideas:

- Set a cookie to a predefined time
- Program a database time check subroutine

Report •
Related Solutions

Ask Question