Solved

session issue in multiple tab browser (IE 7)

Posted on 2009-04-13
1
1,078 Views
Last Modified: 2012-05-06
I have web application in ASP + SQL Server. I am using session to validate the logged user. What happens, if user login in a single tab, there is no issue in the session state..if they open multiple tabs with different user session logins, there are no proper results on the page. (i.e it expiry one tab is logged out etc.,) Is there a possibility, different sessions for multiple tab browsers ...
 
how do resolve this in asp?
0
Comment
Question by:Loganathan Natarajan
1 Comment
 
LVL 12

Accepted Solution

by:
Dimitris earned 250 total points
Comment Utility
one Internet explorer window was one session
Multiple Tab's within the same Internet explorer windows shares the same session also.

The mess up of that data you are experiencing are due to that reason.  
One tab has as login the user "A" then the user on a second tab logins as "B" and the tab of login "A" changes to user "B".

what you have to do is not to allow the user to login again if he has already logged in to the system.

Let's say that your login page is the default.aspx
You have to check on the page load that the user is not logged in, if he is logged in to your system then redirect him to the next page of your site (the page after the successful login). If not then you can allow him to login

And before you ask I have to say that there is no way to have a different session per tab

Hope that I could help
 
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ASP VB... 7 92
Help with stored procedure 30 51
Update function to validate checkbox is checked 4 57
Pass through dll 2 33
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now