Computing.Net > Forums > Web Development > PHP Session Timeout

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP Session Timeout

Reply to Message Icon

Name: jamida
Date: January 23, 2009 at 16:43:42 Pacific
OS: web browser
CPU/Ram: doesn't matter
Product: Doesn't matter / Doesn't matter
Subcategory: PHP
Comment:

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?




Sponsored Link
Ads by Google

Response Number 1
Name: Radix-64
Date: March 16, 2009 at 09:07:25 Pacific
Reply:

Hi, here are some additional ideas:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP Session Timeout

PHP session related prob www.computing.net/answers/webdevel/php-session-related-prob/3433.html

PHP sessions not working www.computing.net/answers/webdevel/php-sessions-not-working/571.html

PHP session problem www.computing.net/answers/webdevel/php-session-problem/3516.html