Persistent login with standard-level security
-
Hi,
The standard login cookie expiration time interval is 14 days, so when a user logs in, and forgot to log out, the account will expire in 14 days, and the user need to re-login.
While it is nice to extend the expiration time to 1 year, it opens a potential security issue, where if the user forgets to logout, the account will remain logged-in for a year!
I’m wondering is it possible to keep the standard 14 days expiration time in the cookie, however renew it every time a user is active on the site (e.g., loads a page). So if the user is active every day, the expiration date will keeps getting pushed down, and the user will be logged-in indefinitely. But if the user becomes inactive and forget to logout, the account will expire 14 days since the last active time.
Thanks
- The topic ‘Persistent login with standard-level security’ is closed to new replies.