Created
April 14, 2018 21:17
-
-
Save hiranya911/42b71c315d9c5ca86537d120266edd4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/sessionTerm', methods=['GET']) | |
def session_terminate(): | |
response = flask.make_response(flask.redirect('/')) | |
response.set_cookie('session', expires=0) | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment