Click here to Skip to main content
Sign Up to vote bad
good
See more: C#
When Multiple Tabs Opened / Multiple Windows Opened it's overriding Session variables. that's messing up the results. how to avoid this situation.
Posted 20 Feb '13 - 10:17

Comments
richcb - 20 Feb '13 - 16:21
Show the code you have so we can see the login implemented.
Member 9851215 - 20 Feb '13 - 16:45
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:42
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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov - 20 Feb '13 - 20:42
5ed. —SA

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 213
1 Sergey Alexandrovich Kryukov 159
2 Richard MacCutchan 150
3 Maciej Los 136
4 Tadit Dash 110
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,917
2 CPallini 4,181
3 Rohan Leuva 3,522
4 Maciej Los 3,125


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid