Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using windows/Forms authentication in an asp.net application.If an user has already logged in from one system then from the same system if anyone is trying to access the login.aspx(before the first users session is expired) then the page should be redirected to the first users main page.Is there any simple way/ configuration to achieve this?
Posted

1 solution

ASP.NET uses non persistent cookies to track the session information. If we configure the session management to become cookie-less then the state information is actually put in the URL.

The above fact would mean that the users requests coming from different browsers of same computer will not be able to use the existing session info i.e. user logged in details so if you need to do this then perhaps you will have to use custom persistent cookies.
 
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