Skip to content

Commit

Permalink
added max age to the session cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Jan 22, 2016
1 parent 4cd6402 commit d2ca60c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/slycat/web/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ def login():
cherrypy.response.cookie["slycatauth"]["path"] = "/"
cherrypy.response.cookie["slycatauth"]["secure"] = 1
cherrypy.response.cookie["slycatauth"]["httponly"] = 1
cherrypy.response.cookie["slycatauth"]["Max-Age"] = cherrypy.request.app.config["slycat"]["session-timeout"].total_seconds()
cherrypy.response.status = "200 OK"
cherrypy.request.login = user_name
else:
Expand Down

0 comments on commit d2ca60c

Please sign in to comment.