app = Flask(__name__)

@app.route('/')
def run():
    session['tmp'] = 43
return '43'
if __name__ == '__main__':
    app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
app.run()
Using session in flask app