marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
96 stars 9 forks source link

Session Extension #109

Closed amcgregor closed 8 years ago

amcgregor commented 12 years ago

Provide a generalized and extensible session service provider. (An extension that extends the context.)

The API should be Beaker-ish, that is, a UserDict subclass with additional attributes:

Two internal keys should be provided and maintained:

Back-ends:

amcgregor commented 12 years ago

Also, optional transaction support for rolling sessions back on error.

agronholm commented 12 years ago

Disagree about the backends. My list of backends:

Pure cookie sessions are not worth the effort IMO, because they can't be invalidated. Or they can, but would require a server-side revocation list, which would completely defeat the purpose.

agronholm commented 12 years ago

Unless of course the point is to have the authentication layer refresh the user info on every request?