Save session for 30 days with "Remember Me" checked

This commit is contained in:
JonnyWong16
2016-04-23 11:18:52 -07:00
parent e99bc73e46
commit 9fcd0da83d
4 changed files with 17 additions and 19 deletions

View File

@@ -66,8 +66,9 @@ def initialize(options):
if options['http_password']:
logger.info("Web server authentication is enabled, username is '%s'", options['http_username'])
options_dict['tools.sessions.on'] = True
options_dict['tools.auth.on'] = True
options_dict['tools.sessions.on'] = True
options_dict['tools.sessions.timeout'] = 30 * 24 * 60 # 30 days
cherrypy.tools.auth = cherrypy.Tool('before_handler', webauth.check_auth)
if not options['http_root'] or options['http_root'] == '/':