mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Change cookie expires to max-age
This commit is contained in:
parent
d019efcf91
commit
d0c07326ab
1 changed files with 2 additions and 2 deletions
|
@ -337,12 +337,12 @@ class AuthController(object):
|
||||||
|
|
||||||
jwt_cookie = str(JWT_COOKIE_NAME + plexpy.CONFIG.PMS_UUID)
|
jwt_cookie = str(JWT_COOKIE_NAME + plexpy.CONFIG.PMS_UUID)
|
||||||
cherrypy.response.cookie[jwt_cookie] = ''
|
cherrypy.response.cookie[jwt_cookie] = ''
|
||||||
cherrypy.response.cookie[jwt_cookie]['expires'] = 0
|
cherrypy.response.cookie[jwt_cookie]['max-age'] = 0
|
||||||
cherrypy.response.cookie[jwt_cookie]['path'] = plexpy.HTTP_ROOT.rstrip('/') or '/'
|
cherrypy.response.cookie[jwt_cookie]['path'] = plexpy.HTTP_ROOT.rstrip('/') or '/'
|
||||||
|
|
||||||
if plexpy.HTTP_ROOT != '/':
|
if plexpy.HTTP_ROOT != '/':
|
||||||
# Also expire the JWT on the root path
|
# Also expire the JWT on the root path
|
||||||
cherrypy.response.headers['Set-Cookie'] = jwt_cookie + '=""; expires=Thu, 01 Jan 1970 12:00:00 GMT; path=/'
|
cherrypy.response.headers['Set-Cookie'] = jwt_cookie + '=""; max-age=0; path=/'
|
||||||
|
|
||||||
cherrypy.request.login = None
|
cherrypy.request.login = None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue