Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: login ASP.NET4.0
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 21-May-12 21:38pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 CHill60 330
1 OriginalGriff 285
2 Sergey Alexandrovich Kryukov 274
3 BillWoodruff 170
4 Aescleal 140


Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100