aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar Señor X 2019-04-03 18:52:21 -0300
committerLibravatar Señor X 2019-04-03 18:52:21 -0300
commitd0aa50672d32668e4945c853c4888a42ed70639f (patch)
treec101214425dfc4fcf0389b19008a7683c67b326c /cgi
parented0d81dc63f6856dfe402614760197010ee6be0f (diff)
downloadweabot-d0aa50672d32668e4945c853c4888a42ed70639f.tar.gz
weabot-d0aa50672d32668e4945c853c4888a42ed70639f.tar.xz
weabot-d0aa50672d32668e4945c853c4888a42ed70639f.zip
Cookie no se borra al cerrar sesión
Diffstat (limited to 'cgi')
-rw-r--r--cgi/framework.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/framework.py b/cgi/framework.py
index 5f4f4f4..651814c 100644
--- a/cgi/framework.py
+++ b/cgi/framework.py
@@ -380,7 +380,7 @@ def deleteCookie(self, key):
else:
self._newcookies[key]["path"] = "/"
self._newcookies[key]["domain"] = self._cookies[key]["domain"]
- self._newcookies[key]["max-age"] = 0
+ self._newcookies[key]["expires"] = "Thu, 01 Jan 1970 00:00:00 GMT"
def elapsed_time(seconds, suffixes=['y','w','d','h','m','s'], add_s=False, separator=' '):
"""