Score:0

Retrieving different sessions in flask

my flag

I'm using Flask-Session to store server-side session data on Redis. This is currently working fine but I want to access data from a previously-created session on a different browser (or computer). Here's the relevant part of the code:

app = Flask(__name__)
app.secret_key = str(os.environ.get('SECRET_KEY'))
app.config['SESSION_TYPE'] = 'redis'
app.config['SESSION_REDIS'] = redis.from_url(redis_server)

server_session = Session(app)

Is there any way to list existing sessions on redis (I can see they're there using redis-commander) and switch to a different one?

Thanks!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.