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)
| 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, |