开发者

Destroy session in Pylons or Python

开发者 https://www.devze.com 2023-01-08 22:26 出处:网络
I can\'t find information on how to destroy / kill a session within Pylons or Python on the interwebs.Thought it would be a good idea just to ask it here so that when I need to do it again a year from

I can't find information on how to destroy / kill a session within Pylons or Python on the interwebs. Thought it would be a good idea just to ask it here so that when I need to do it again a year from now I'll find this question :)

So I'm looking for a PHP session_destroy() equ开发者_开发百科ivalent for Pylons or Python.

Thanks, Maggi


session.delete() or session.invalidate(), depending on what you want.

http://beaker.readthedocs.org/en/latest/sessions.html#deleting

0

精彩评论

暂无评论...
验证码 换一张
取 消