How to Have Session Expire 900s After Last Click
Posted: Tue Nov 02, 2004 4:54 pm
Hello,
I've got a session issue that I can't find any solution for. My sessions are working correctly, but they always expire after 900 seconds. I would like my users' sessions to expire after 900 seconds of inactivity. So, for example, if a user is moving around the "manage my account" area, the session expiry is set 900 seconds from their last click.
I currently have this in my .htaccess file to enable the current 900s expiry:
php_value session.cookie_lifetime "900"
I tried this in my code, but sessions wouldn't work:
ini_set('session.cookie_lifetime',900);
session_start();
Any suggestions?
Thanks,
Doug
I've got a session issue that I can't find any solution for. My sessions are working correctly, but they always expire after 900 seconds. I would like my users' sessions to expire after 900 seconds of inactivity. So, for example, if a user is moving around the "manage my account" area, the session expiry is set 900 seconds from their last click.
I currently have this in my .htaccess file to enable the current 900s expiry:
php_value session.cookie_lifetime "900"
I tried this in my code, but sessions wouldn't work:
ini_set('session.cookie_lifetime',900);
session_start();
Any suggestions?
Thanks,
Doug