-
-
Save key-moon/cab3802d80d40f1d769b39acdf8f0cdc to your computer and use it in GitHub Desktop.
This file contains 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
from flask import Flask, session | |
secret_key = 'a7a8342f9b41fcb062b13dd1167785f8' | |
app = Flask(__name__) | |
app.secret_key = secret_key | |
@app.route("/") | |
def top(): | |
session['_fresh'] = False | |
session['user_id'] = '1'; | |
return '' | |
tc = app.test_client() | |
print(tc.get('/').header) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment