Created
January 10, 2017 02:56
-
-
Save wgwz/1f6bf9471f080d79e802f7833c926918 to your computer and use it in GitHub Desktop.
session test
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("/test_session") | |
def write(): | |
session['uid']='my_uid' | |
return session.get('uid') | |
@app.route("/read_session") | |
def read(): | |
return session.get('uid') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment