Frank Bannister Frank Bannister - 3 months ago 20
Python Question

How do I set Session name with Cherrypy?

In PHP I would do it like this:

session_name("special_session_name");


So how do I do it with Cherrypy?
Just need to find exact equivalent for it.
PHP manual page:
http://fi2.php.net/session_name

Answer

Reading the docs and the source most probably you have to set "tools.sessions.name" in your config file:

cherrypy.config.update({'tools.sessions.name': "special_session_name"})
Comments