Web Session In Pure Python
I am creating a web site using python and html/css. I am not using any web framework just using pure python. I want to implement session in this site but cant find appropriate code
Solution 1:
Python has a Cookie
module in its stdlib that allows you to create and manipulate cookies in a server written in Python. Writing a HTTP server in Python is easy - just use BaseHTTPServer
- again from the stdlib. With the Cookie
module it shouldn't be difficult to implement sessions, since sessions are usually based on cookies.
Solution 2:
You want to write a WSGI app.
Post a Comment for "Web Session In Pure Python"