开发者

Destroy session in Pylons or Python

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜