How to try out web application using multiple logins at once

I am developing a web application that uses JWT tokens to authenticate users which have different roles. In order to test the application I would need to switch between different user's accounts, ideally without switching browser. Is it possible to constrain session data to a tab so that I can login to my application as different users from different tabs using the same browser?
1 answer

Firefox uses profiles to manage personal data like logins. In order to create profiles besides the default one you can use the Profile Manager by opening "about:profiles" in the address bar. If you often find yourself switching between different profiles you might find the plugin Firefox Multi-Account Containers useful. It allows to color code tabs belonging to a profile to help telling them apart.

Chromium and Google Chrome also allow to use multiple profile in the same browser instance. A straightforward way to make use of that is the plugin SessionBox.


Thanks! I usually just used a different browser, as well as some anonymous tabs if needed, so its nice to see that there is a more elegant solution to this.

Sascha Pleßberger - Mon, 12/13/2021 - 14:53 :::

Another idea can be to use some kind of load testing tool, but your solution seems really good, I will try it next time, thank you!

Mathilda Moström - Thu, 12/16/2021 - 10:16 :::

Thanks, this is a very useful information not only for web development

Ondrej Brichta - Mon, 12/20/2021 - 11:47 :::

Thank you for sharing this information. In the past, I often used different incognito windows for such problems. This is easy and you don't need to set anything up, if you just have a small test

Thomas Stoiber - Mon, 12/20/2021 - 15:40 :::

Thanks for this, I used to use private browsing in such cases but I will definitely try this the next time I had a similar test process.

Parinaz Momeni ... - Tue, 12/21/2021 - 23:54 :::