Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:17am
Comments
richcb at 20-Feb-13 16:21pm
   
Show the code you have so we can see the login implemented.
Member 9851215 at 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 at 20-Feb-13 20:42pm
   
Not really messing up... :-)
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 at 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)

  Print Answers RSS
0 OriginalGriff 315
1 Sergey Alexandrovich Kryukov 201
2 ChauhanAjay 156
3 PhilLenoir 154
4 ClimerChinna 140
0 Sergey Alexandrovich Kryukov 6,140
1 OriginalGriff 5,195
2 CPallini 2,473
3 Richard MacCutchan 1,607
4 Abhinav S 1,505


Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100