Comments (4)
The session is paired up with uuid on client side's cookie so the PERMANENT_SESSION_LIFETIME
is essentially used to set the expiry of cookie.
While the session will be invalidated if the cookie is deleted or has expired, the session data remains on the server albeit never be accessed anymore.
However, I would prefer to have expired session data removed from the server but that will depend on the behavior of werkzeug.contrib.cache
package instead.
I doubt the files will be removed automatically but calling prune()
may be able to clear all expired session data.
from flask-session.
werkzeug.contrib.cache is likely to be removed soon, as it is deprecated.
Do you have any planning to use some other approach?
from flask-session.
I am also facing similar issue with PERMANENT_SESSION_LIFETIME , which not removing data from session within mentioned time frame.
I have used ServerSideSession
from flask_session.sessions import ServerSideSession
from flask-session.
Should now be fixed from 0.6.0
from flask-session.
Related Issues (20)
- Changelog for Flask-session 0.6.0 missing HOT 4
- DynamoDB backend implementation. HOT 4
- A 'SQLAlchemy' instance has already been registered on this Flask app HOT 9
- Signing server-side session: is it needed? HOT 1
- `SqlAlchemySessionInterface` docstring and constructor arguments in 0.7.0rc2 HOT 1
- Session Management Issue Causing Unexpected User Logouts HOT 4
- Revoking sessions HOT 2
- Version 0.7.0 is a breaking change HOT 4
- TypeError: Encoding objects of type LazyString is unsupported HOT 8
- Allow to instansiate Session with custom session interface HOT 12
- DynamoDB retrieve session does not check for expiration time
- Possible regression: Table 'sessions' is already defined
- can make `SESSION_SERIALIZATION_FORMAT` = 'json' work HOT 1
- Error from version 0.6.0 to 0.8.0 on loading HOT 1
- Deprecation Warnings
- SQLAlchemy backend intermittently errors on concurrent requests HOT 2
- Fix datetime.utcnow() deprecations in SQLAlchemy backend
- Allow static resources to bypass opening sessions HOT 5
- >0.6.0 breaks session['last_active'] HOT 2
- Incorrect trailing comma in CacheLib usage example
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-session.