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

If i open my application in 2 same browser with different login credential.
Now, if i close one browser, then automatically session of another browser expired.

how to solve this problem?

thanks in advance.
Posted
Updated 19-Jul-12 19:53pm
v3
Comments
Ganesh Kumar Kaki 20-Jul-12 1:56am    
you can maintain a list of users in the Application object and use .Contains to see if it already exists.

Check for the session_expires event
may it helps you.
 
Share this answer
 
you can maintain a list of users in the Application object and use .Contains to see if it already exists.

rather than going in an automatic manner it's better to abandon the sessions manually using Session.Abandon() in session_expires event .

Its better for you to know the difference between application state and session state.
Use these both states to solve your problem

hardly it may be 3 lines of code you have to wright.

Good Luck
 
Share this answer
 
Comments
jeyamothi 20-Jul-12 2:44am    
ya i am using only the

session.abandon()
session.clear()
formsauthentication.signout()
This is kind of same as why Session is shared across browsers tab. Well, it's kind of not much in our control. But do have a look at this answer I suggested on how to seperate/have different session for tabbed browser. It might help out!
This one: Unique session in multitab browser[^]
 
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