Allow Multiple Users per Browser

Asked

Viewed 83 times

5

For example, the Google allows you to maintain n accounts of Google wrinkled in your browser.

In the case of Google, it creates a call control variable authuser who receives a inteiro, it passes this variable in the url, either via a route or queryString and uses it to identify which the login the user is using in that tab.

I would like to do something similar with ASP.NET Identity

1 answer

0

Maybe you have frameworks that do what you want, I never needed so I didn’t research, but now I think about a simple way to solve this, and it works regardless of the version and whether it is legacy system or not. Just manage the cookie. For example, in Asp.Net, the default cookie name is ". ASPXAUTH, "when your system is going to add a new user, you copy the cookie value ". ASPXAUTH" for a new cookie, such as "User1" and removes the authentication cookie and redirects to the login page. After the login, whenever you change users, just change the values of the cookies of "User1" and ". ASPXAUTH". It’s simple, but I think it works.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.