increase the expires time each time a session is checked for authentication

This commit is contained in:
Damien Churchill 2009-08-19 23:30:36 +00:00
parent 9f3ef6556a
commit 865027b3ec
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ class Auth(JSONComponent):
auth_level = AUTH_LEVEL_NONE
session_id = None
else:
auth_level = config["sessions"][session_id]["level"]
session = config["sessions"][session_id]
auth_level = session["level"]
session["expires"] = int(time.time()) + config["session_timeout"]
if method:
if not hasattr(method, "_json_export"):