Click here to Skip to main content
13,048,846 members (68,770 online)
Rate this:
Please Sign up or sign in to vote.
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 20-Feb-13 10:17am
richcb 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... :-)

1 solution

Rate this: bad
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.
Sergey Alexandrovich Kryukov 20-Feb-13 20:42pm

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2017
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