Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
When Multiple Tabs Opened / Multiple Windows Opened it's overriding Session variables. that's messing up the results. how to avoid this situation.
Posted
Comments
Richard C Bishop 20-Feb-13 16:21pm    
Show the code you have so we can see the login implemented.
Member 9851215 20-Feb-13 16:45pm    
Once User logs in to the System. It will be active for 40 mins. so even though user tries to open the application again in another tab or window it's not asking them to login again
Sergey Alexandrovich Kryukov 20-Feb-13 20:42pm    
Not really messing up... :-)
—SA

1 solution

Session is stored on the server, but it is identified by a cookie that resides on the user's computer. That means any windows or tabs the user has open for a specific browser will all share the same session.

The trick is to use other means of storing the data. Some other choices are view state, control state, hidden fields, databases, query stirngs, static variables, and cookies. If you have a bunch of data that should reside on the server at all times, you might choose a hybrid approach. For example, you could store a unique ID in a hidden form field, then use that ID to look up the data on the server side (even in session).

I recommend you read more about ASP.NET State Management.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Feb-13 20:42pm    
5ed.
—SA

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