How do I start a session in a Python web application?

前端 未结 5 1948
盖世英雄少女心
盖世英雄少女心 2020-12-10 08:18

This question is based on this answer.

I\'m looking for a function similar to PHP\'s session_start() for Python. I want to access a dictionary like

5条回答
  •  感动是毒
    2020-12-10 08:38

    You might consider looking into the Beaker library for Python which isn't tied to any one web framework an will work in a WSGI compatible environment:

    http://beaker.groovie.org/

    Beaker is a library for caching and sessions for use with web applications and stand-alone Python scripts and applications. It comes with WSGI middleware for easy drop-in use with WSGI based web applications, and caching decorators for ease of use with any Python based application.

提交回复
热议问题