I am using the Python flash framework. I use sessions in my application. For my application called main , I have the parameter main.permanent_session_lifetime = timedelta(days=5) , so that the user remains on the system for 5 days after logging in. But even an active user will log out after 5 days. I would like the expiration time to reset every time they visit the site, so you only log out after 5 days of inactivity . Most sites work this way. How to do it with Flask?
python flask session
J-bob Nov 04 '13 at 1:45 2013-11-04 01:45
source share