On Thursday, April 4, 2024 at 9:54:49 PM UTC+5:30 Jens wrote:
2)i wants to test my flask app in same browser but i wants to different user login and if new user login then previous user don't logout automaticallyIf you use Chrome or a Chrome based browser then you could also create two chrome profiles. Profiles are fully independent of each other and you can open two windows, one with profile A active and the other with profile B active. I regularly use that with the ARC browser (a Chrome based browser) to fully separate work and personal stuff within the same browser.How do you want your app to work?If you really want different users in different tabs within the same browser then you can only use session-id cookies if each logged in user has its own URL and the session-id cookie is limited to that URL. I think Google does this because Google Groups allows you to login with multiple accounts and then switch between them. But if you activate that feature then the URL is like groups.google.com/u/0/.. for the first user and groups.google.com/u/1/.. for the second user. That way they can have a different set of cookies for each URL path (= user). If you don't want that then you cannot use cookies and you must store the session-id in memory in your browser app and send it via HTTP Header manually. However doing so means that you are logged out as soon as you close the tab because the session-id is lost then.-- J.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/96f36e62-3015-4a53-925f-de29932342f5n%40googlegroups.com.
No comments:
Post a Comment