mbr / flask-kvsession

A drop-in replacement for Flask's session handling using server-side sessions.
http://pythonhosted.org/Flask-KVSession/
MIT License
168 stars 53 forks source link

Add support for expiring sessions due to inactivity #24

Closed vimalloc closed 10 years ago

vimalloc commented 10 years ago

Per Issue #23.

This adds the option "track_accessed" to update the session timestamp whenever a session is open. Lets you expire sessions due to inactivity.

I'm not sure if you're interested in this feature or not. It could probably use some cleanup and maybe some better variable names, but from what I can tell it's functional.

Cheers.

mbr commented 10 years ago

Unfortunately, this cannot be merged against the 0.5 codebase. Also, see my answer to #23 please.