MCPcopy Create free account
hub / github.com/datapane/datapane / delete_cookie

Method delete_cookie

python-client/src/datapane/_vendor/bottle.py:1881–1886  ·  view source on GitHub ↗

Delete a cookie. Be sure to use the same `domain` and `path` settings as used to create the cookie.

(self, key, **kwargs)

Source from the content-addressed store, hash-verified

1879 self._cookies[name][key] = value
1880
1881 def delete_cookie(self, key, **kwargs):
1882 """ Delete a cookie. Be sure to use the same `domain` and `path`
1883 settings as used to create the cookie. """
1884 kwargs['max_age'] = -1
1885 kwargs['expires'] = 0
1886 self.set_cookie(key, '', **kwargs)
1887
1888 def __repr__(self):
1889 out = ''

Callers

nothing calls this directly

Calls 1

set_cookieMethod · 0.95

Tested by

no test coverage detected