Skip to content

Instantly share code, notes, and snippets.

@key-moon
Last active October 12, 2018 02:55
Show Gist options
  • Save key-moon/cab3802d80d40f1d769b39acdf8f0cdc to your computer and use it in GitHub Desktop.
Save key-moon/cab3802d80d40f1d769b39acdf8f0cdc to your computer and use it in GitHub Desktop.
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