]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Allow deleting all cookies on custom domains 873/head 874/head
authorKarlis Lauva <skazhy@gmail.com>
Fri, 9 Aug 2013 10:43:20 +0000 (13:43 +0300)
committerKarlis Lauva <skazhy@gmail.com>
Fri, 9 Aug 2013 10:43:20 +0000 (13:43 +0300)
tornado/web.py

index c33c923f423540298417aca96b23bdbc25ecb866..1332924cd114f5687bd01ea2635f186a882e500d 100644 (file)
@@ -442,10 +442,10 @@ class RequestHandler(object):
         self.set_cookie(name, value="", path=path, expires=expires,
                         domain=domain)
 
-    def clear_all_cookies(self):
+    def clear_all_cookies(self, path="/", domain=None):
         """Deletes all the cookies the user sent with this request."""
         for name in self.request.cookies:
-            self.clear_cookie(name)
+            self.clear_cookie(name, path=path, domain=domain)
 
     def set_secure_cookie(self, name, value, expires_days=30, **kwargs):
         """Signs and timestamps a cookie so it cannot be forged.