Closed ehteshamshareef closed 7 months ago
In my testing of the latest version this works perfectly. I would note that you must use entirely different browsers or clear the cookie as most browsers will use the same cookie jar for all of their tabs and windows.
I'm using Flask-Session and redis for an application im trying to make and im using gunicorn with 4 gevent workers as the production server. I'm trying to build a counter which should have a seperate session id each time a new browser or tab is opened and each session id is supposed to maintain its own count.
Here's the code that i have till now.
In the 'set' route, im setting the key value to 1 and whenever i go to 'get' the counter value increases.
I'm trying to figure out how to set session id for each new connection( new tab or browser) and then each session id holds it's count. Any help would be appreciated.