Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to create a new user session without closing the current session. That is in my asp app first admin log ins and a new session starts, then i need to start another session without closing current session is. it possible..?
Posted
Updated 31-Dec-13 23:06pm
v4
Comments
Jobless Creature 13-Dec-13 2:52am    
Can you explain more on what you are trying to achieve? Also, specify what session type you are using

Simply, this is not possible.

Session ID is kept in a cookie.
You cannot have two different sessions for the same application in one browser (a new tab or a new window - doesn't matter) at the same time.
 
Share this answer
 
Comments
Praveen_P 13-Dec-13 3:02am    
Thank you for your consideration , but in the web.config i use "sessionstate cookieless="true" , then can i create a new user session in a new tab on a button click in asp
I am not sure, whether this is possible or not.
Refer - Session for a Tab in ASP.NET[^].

Just give it a try and let me know.
The normal behavior is to share the session across browser tabs.
To have different unique session created per tab can be done as you already indicated in the Comments as well as Tadit mentioned using cookieless option. But this approach not a recommended one.

http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx[^]
 
Share this answer
 

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