Skip to content

Instantly share code, notes, and snippets.

@hiranya911
Created April 14, 2018 21:17
Show Gist options
  • Save hiranya911/42b71c315d9c5ca86537d120266edd4f to your computer and use it in GitHub Desktop.
Save hiranya911/42b71c315d9c5ca86537d120266edd4f to your computer and use it in GitHub Desktop.
@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