Am doing a project with Flask, Gevent and web socket using flask development server environment. I used flask_login
. Here
- how can get i get the Unique Session ID for each connection?
- I want to store the
SessionID
in the Database and delete it once client disconnects. How to get total active connections
from flask_login import * login_manager = LoginManager() login_manager.setup_app(app) @app.route("/", methods=["GET", "POST"]) def login(): login_user([username], remember): @app.route("/logout") @login_required def logout(): logout_user()
flask_login
? Post that part of your code. – Burhan Khalid