How do I clear a flask session?
There is no way to clear session or anything.
One must simply change the app.config["SECRET_KEY"] and the contents in session dictionary will get erased.
While importing flask, we import modules such as session etc.
SecureCookieSession is a kind of dictionary, that can be accessed using session. 
Now, I try to clear all the junk variables that I used while trying to build a website. 
One of the answers on stackoverflow used a command like session.clear() for clearing the contents of a session. But such a command gives an error that no such command exists.
Can anyone point out for me how to clear the SecureCookieSession and how to clear the session every time I shutdown the server or close the website?