Click here to Skip to main content
15,438,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create login for two user or more in same browser just as the gmail add a/c button
Updated 4-Oct-13 1:21am
What have you tried?

1 solution

I have found below one on SOF. Check that.

It's all about not associating 1 session with 1 user.

Let me briefly explain that.

Usually you've a server session in ASP.NET storing some user values that may customize or place useful data like this:

HttpContext.Current.Session["isAuthenticated"] = true;
What about:

HttpContext.Current.Session["1182"]["isAuthenticated"] = true;
...where "1182" is just an unique user identifier.

Just store values in server session in some collection where its key is the unique user identifier of authenticated identity, so this allows a parameterized-by-unique-user-identifier access to session's values.

It's an abbreviation of a more mature and complex actual solution, but it's a hint of how you'd handle such situation.

For more info check Multiple Session or Multiple User login in same website/webapp at same time[^].

I hope this will help to you.

[Edit member="Tadit"]
Link text added to reflect the Article/QA title.
Share this answer
Sampath Lokuge 4-Oct-13 9:46am    
Thanks @Tadit for Edit :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900