I’m using python web.py to create a quick prototype to test something. I noticed that the scope of the session variable is such that 2 tabs on the same browser, Chrome, for example, share the session.
Is there a way to avoid this? It would allow me to debug and test more efficiently.
To provide some context, I’m using DiskStore for sessions:
session = web.session.Session(app, web.session.DiskStore('sessions'))
Thanks.
All modern browsers behave this way. It has to do with sending cookies to a site that has set the cookies previously. If not, popups, and other windows would not be able to function correctly.
To get around this, I often use Incognito and Normal browsing in Chrome. There is a separation there which prevents one from seeing the other’s cookies.
Also, you can use separate browsers to accomplish this.