Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/305.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 塔架、饼干没有被摧毁_Python_Cookies_Pylons_Session Cookies - Fatal编程技术网

Python 塔架、饼干没有被摧毁

Python 塔架、饼干没有被摧毁,python,cookies,pylons,session-cookies,Python,Cookies,Pylons,Session Cookies,我正在尝试删除名为“会话”的cookie以注销用户 request.cookies.pop('session', None) response.set_cookie('session', '', max_age=-100, domain='.example.org') response.set_cookie('session', '', max_age=-100, domain='www.example.org') response.delete_cookie('session', '', do

我正在尝试删除名为“会话”的cookie以注销用户

request.cookies.pop('session', None)
response.set_cookie('session', '', max_age=-100, domain='.example.org')
response.set_cookie('session', '', max_age=-100, domain='www.example.org')
response.delete_cookie('session', '', domain='.example.org')
response.delete_cookie('session', '', domain='www.example.org')
正如你所看到的,我现在正在尝试一切

似乎没有什么东西能抹掉饼干

感谢您的帮助


谢谢大家!

如果您使用的是挂架的内置功能,那么使用session.invalidate()和session.delete()会简单得多


您是使用烧杯,还是使用自己的解决方案?

您使用什么来储存饼干
cookielib.CookieJar