MCPcopy Create free account
hub / github.com/EasyIME/PIME / clear_all_cookies

Method clear_all_cookies

python/python3/tornado/web.py:671–685  ·  view source on GitHub ↗

Deletes all the cookies the user sent with this request. See `clear_cookie` for more information on the path and domain parameters. Similar to `set_cookie`, the effect of this method will not be seen until the following request. .. versionchanged:: 3.2

(self, path: str = "/", domain: Optional[str] = None)

Source from the content-addressed store, hash-verified

669 self.set_cookie(name, value="", path=path, expires=expires, domain=domain)
670
671 def clear_all_cookies(self, path: str = "/", domain: Optional[str] = None) -> None:
672 """Deletes all the cookies the user sent with this request.
673
674 See `clear_cookie` for more information on the path and domain
675 parameters.
676
677 Similar to `set_cookie`, the effect of this method will not be
678 seen until the following request.
679
680 .. versionchanged:: 3.2
681
682 Added the ``path`` and ``domain`` parameters.
683 """
684 for name in self.request.cookies:
685 self.clear_cookie(name, path=path, domain=domain)
686
687 def set_secure_cookie(
688 self,

Callers 1

getMethod · 0.80

Calls 1

clear_cookieMethod · 0.95

Tested by 1

getMethod · 0.64