A dict-like SimpleCookie instance. This should not be used directly. See :meth:`set_cookie`.
(self)
| 1333 | |
| 1334 | @property |
| 1335 | def COOKIES(self): |
| 1336 | """ A dict-like SimpleCookie instance. This should not be used directly. |
| 1337 | See :meth:`set_cookie`. """ |
| 1338 | depr('The COOKIES dict is deprecated. Use `set_cookie()` instead.') # 0.10 |
| 1339 | if not self._cookies: |
| 1340 | self._cookies = SimpleCookie() |
| 1341 | return self._cookies |
| 1342 | |
| 1343 | def set_cookie(self, name, value, secret=None, **options): |
| 1344 | ''' Create a new cookie or replace an old one. If the `secret` parameter is |