Python Module for Session Management
Asked Answered
I

2

5

Is there any equivalent module for session management like Perl's CGI::Session or Apache::Session ? (I know most python web frameworks have their own implementations, but I am looking for a stand alone module that could be used with any python application.)

Illiteracy answered 29/12, 2012 at 2:32 Comment(0)
F
8

I think you can use Beaker's which is a popular library for this. documentation

Fatidic answered 29/12, 2012 at 2:51 Comment(1)
This seems more like what I was looking for - github.com/bbangert/beaker/blob/master/beaker/session.py - Thanks.Illiteracy
G
3

Werkzeug is a WSGI library that is somewhat equivalent to Perl's CGI module in the Python world (almost nobody uses CGI in Python), and it has basic session and signed cookie support.

Werkzeug powers Flask, a minimalist web framework that I frequently use for quick and dirty stuff.

Galvanize answered 29/12, 2012 at 2:48 Comment(1)
Thanks. Will definitely test this out.Illiteracy

© 2022 - 2024 — McMap. All rights reserved.