View Full Version : Killing session after certain time of inactivity
06-13-2006, 06:06 AM
Is there anyway to automatically destroy a session after a certain time of user inactivity?
06-13-2006, 06:24 AM
ralph l mayo
06-13-2006, 06: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.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.