cherrypy.tutorial.tut07_sessions module

Tutorial - Sessions

Storing session data in CherryPy applications is very easy: cherrypy provides a dictionary called “session” that represents the session data for the current user. If you use RAM based sessions, you can store any kind of object into that dictionary; otherwise, you are limited to objects that can be pickled.

class cherrypy.tutorial.tut07_sessions.HitCounter[source]

Bases: object

_cp_config = {'tools.sessions.on': True}
index()[source]