storborg / gimlet Goto Github PK
View Code? Open in Web Editor NEWVersatile and high-performance WSGI sessions
Home Page: http://gimlet.readthedocs.org/
License: Other
Versatile and high-performance WSGI sessions
Home Page: http://gimlet.readthedocs.org/
License: Other
Some clients mangle cookies by forcing them to lowercase. To deal with this, make each session cookie use base36 encoding instead of base64.
Also, log a warning with the mismatch (to the gimlet
logger) and note the expected/actual signatures.
The need for mixed http/https sites has all but completely vanished as https is faster (SPDY), easier, and without downside. Remove support for mixed http/https session, as this adds a lot of complexity and unnecessary overhead.
If I add an item to the secure, permanent channel and then try to retrieve it with session.get(key)
, None
is always returned, but it can be retrieved with session[key]
.
I'm not sure if this is a bug, but it does seem unexpected.
Would be good to figure out why it doesn't work with newer versions.
Make the default gimlet behavior basically a drop-in for e.g. stock Pyramid sessions. Store keys entirely on the client, and don't require any backend configuration.
Current usage in Pyramid requires something like this:
def new_response_subscriber(event):
request, response = event.request, event.response
request.session.response_callback(request, response)
Instead, call request.add_response_callback()
inside the session factory, so that no additional configuration is required.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.