CherryPy sessions

I almost started pulling my hair over this. The part of the CherryPy book on sessions said that the following code would turn on sessions in CherryPy 2.1:

cherrypy.config.update({'session_filter.on' : True})

However trying to access session data after that resulted in a “500 Internal Error” page telling me that sessions weren’t enabled. Huh?

Luckliy I found this post on the topic. There’s apparently a typo in the book, the line should read:

cherrypy.config.update({'sessionFilter.on' : True})


  1. It seems I was looking in the wrong version of the book. The upcomming version (in the trunk) is published on the same page as the released version (for CherryPy v2.1).

  2. Pingback: magnus » Django seems cool

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>