...

View Full Version : Killing session after certain time of inactivity



kehers
06-13-2006, 07:06 AM
Is there anyway to automatically destroy a session after a certain time of user inactivity?

litebearer
06-13-2006, 07:24 AM
look here

http://www.phpfreaks.com/tutorials/77/0.php


Lite...

ralph l mayo
06-13-2006, 07:26 AM
If by automatically you mean manually, then yes. Set $_SESSION['lastseen'] or an equivalent database field tied to the session on every page hit, and reject values of lastseen older than your threshold for inactivity during authentication.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum