Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

We have the implement the following scenario in our application:

1.We use windows authentication. User opens our website in tab1 and does some action but with out clicking on save he opens a new tab tab2 and opens the same website again.

2.When user opens website in new tab or browser, if the user session in tab1 is active i need to warn users that the he is already logged on to application in some other browser and go to some log out page. But if the user session in tab1 is timed out then he must be able to continue with the website in tab2 as usual, but later if he tries to do anything in tab1 he should go to session expired page.

Any ides any one?
If anyone implemented this please help me out.
I figured out a way to do this but that doesn't look like good programming to me :(( .

Thanks in Advance
Harsha
Posted

1 solution

How are you storing/keeping track of the user's versus actual Sessions?

There is a discussion about it @ stackoverflow:http://stackoverflow.com/questions/2829228/way-around-asp-net-session-being-shared-across-multiple-tab-window[^]


Personally i like the tab-GUID approach, but there is a long discussion there that i wish not to plagiarize ;) .
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900