Destroy a session in Pylons or Python

I cannot find information on how to destroy / kill a session in Pylons or Python on websites. I thought it would be nice to ask him here so that when I need to do it again in a year, I will find this question :)

So, I am looking for the equivalent of PHP session_destroy () for Pylons or Python.

Thanks Maggi

+3
source share
1 answer

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

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

+4
source

Source: https://habr.com/ru/post/1755969/


All Articles