Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

session issue in multiple tab browser (IE 7)

Posted on 2009-04-13
1
Medium Priority
?
1,093 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 1000 total points
ID: 24129144
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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

971 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