From d0aa50672d32668e4945c853c4888a42ed70639f Mon Sep 17 00:00:00 2001 From: Señor X Date: Wed, 3 Apr 2019 18:52:21 -0300 Subject: Cookie no se borra al cerrar sesión --- cgi/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=' '): """ -- cgit v1.2.1-18-gbd029