Python Module for Session Management

孤街醉人 提交于 2019-12-10 14:51:27

问题


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.)


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/14078207/python-module-for-session-management

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!