noraj/flask-session-cookie-managerPublic NotificationsYou must be signed in to change notification settings Fork90 Star582 Files .github .gitignore FAQ.md LICENSE PKGBUILD README.md _config.yml flask_session_cookie_manager2.py flask_session_cookie_manager3.py ...
app = Flask(__name__) #这里可以给SECRET_KEY设置一个随机1位字符串:os.urandom(1) app.config['SECRET_KEY'] = os.urandom(1) @app.route('/set_session/') def set_session(): # session本身是个字典,需要直接添加键值对 # 添加session值之前,必须先设置SECRET_KEY session['username'] = 'bingya...