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
精彩评论