简体   繁体   中英

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

阅读文档和源代码很可能必须在配置文件中设置“ tools.sessions.name”:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM