Comments (2)
I agree it should be possible to namespace the keys.
Currently you just end up with a massive list of randomly generated keys.
from flask-kvsession.
As of simplekv 0.9.2, this can be achieved using PrefixDecorator:
store = ... # setup store normally
prefixed_store = PrefixDecorator('sessions_', store)
# ...
KVSessionExtension(prefixed_store, app)
The decorator will transparently prefix sessions_ to every session key stored and strip it upon retrieval. See the simplekv docs for details.
from flask-kvsession.
Related Issues (20)
- Session saved every request even if not modified HOT 5
- Respect SESSION_COOKIE_HTTPONLY and SESSION_COOKIE_SECURE HOT 2
- Invalidating sessions based on time inactive instead of time created HOT 8
- Lots of session collisions HOT 21
- Docs is down? HOT 1
- cookie/session getting lost when session not modified during a request HOT 3
- Security concern of re-using session HOT 6
- SQL Server Schema To Store Session Data HOT 1
- session.regenerate() Force User To Sign Out HOT 4
- There is a problem when using kvsession in python2.6
- How to use memcache with simplekv/ kv-session?
- Table already defined on this metadata instance HOT 1
- Using SQLAlchemy data stored as binary and wrapped as binary when opened HOT 1
- EOFError in Flask-KVSession 0.6.2 HOT 4
- new simplekv versions no longer compatible HOT 4
- File store sometimes fails
- TTL supporting stores expire sessions based on time passed since session creation rather than TTL
- New release?
- Is this project still actively maintained? HOT 1
- Replace caching with server side session
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-kvsession.