I have a Flask Server, and I'm using the session object in requests. However, I also have a background thread that runs occasionally for cleanup, which does not run within any handler.
How would I generate a list of active session objects across all clients? So for example, if Client A has Session A, Client B has Session B, Client C has Session C, I would like to access a list along the lines of [Session A, Session B, Session C].
It appears there's no mention of this in the Flask or Flask-Session documentation, but it seems like this should be possible since we're obviously storing all session information somewhere.