Open Closed

I want to be logged in as a different user in each tab of the same browser #6972


User avatar
0
vinay.step2gen@gmail.com created

I want to be logged in as a different user in each tab of the same browser so that I can perform multiple tasks. Could you please let me know how I can achieve this behavior?

Example : I have two users test1 and test2. I want to be logged in as both users in different tabs of the same browser .

Log in as test1: Open a regular browsing window, navigate to the website where you want to log in as test1, and log in with the credentials for test1. Log in as test2 :Open a new tab on same browser, navigate to the same website and log in with the credentials for test2. This will allow you to be logged in as test1 in one tab and test2 in another tab within the same browser.

  • ABP Framework version: v7.3.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

9 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    The only way is you can use privacy window

  • User Avatar
    0
    vinay.step2gen@gmail.com created

    Did you mean by incognito window ?

    Is there any way to do the same functionality on same browser so that i can achieve the same behavior ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Did you mean by incognito window ?

    Yes.

    Is there any way to do the same functionality on same browser so that i can achieve the same behavior ?

    No, Just like you can't log into two twitter accounts at the same time in the same browser.

    You can quickly switch between accounts using the linked account feature provided by ABP.

  • User Avatar
    0
    vinay.step2gen@gmail.com created

    Can't we override the default behavior provided by ABP ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can't we override the default behavior provided by ABP ?

    I didn't get it, what default behavior?

  • User Avatar
    0
    vinay.step2gen@gmail.com created

    I mean to say that ,If I want to log in as another user on the same browser, by default ABP will log out the previous user and then log in the new user. So, can I override this functionality ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It's not about ABP's behavior but Browser.

    The tabs share the same cookies. That's why I said it's not possible.

    Three options:

    • Use the incognito window
    • Use the linked account
    • Use the another browser
  • User Avatar
    0
    vinay.step2gen@gmail.com created

    Can we use session storage rather than local storage or cookies to store user and token information ? Default ABP store these stuff into the local storge of browser.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Unfortunately this cannot be done

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11