Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all

In my application i am using formauthentication. How to check a user is login or
not using Formauthentication.
Please tell me any one.

Thanks
Posted

Hi,
you can use Login Status control

http://msdn.microsoft.com/en-us/library/cc295456.aspx
 
Share this answer
 
Here[^] are the details of the form authentication .
Here[^] is and example of form authentication.

Note: Read carefully everything as it all depends on authentication, authorization you are using.
 
Share this answer
 
After authenticating the user, you need to store userid in session. You can check the session whenever you need to check the user is logged in or not.

I think you need to learn FormAuthentication Basics. Here is some links for you, which will tell you about FormAuthentication:
Explained: Forms Authentication in ASP.NET[^]
Forms Authentication in ASP.NET with C#: Advance[^]
Form authentication and authorization in ASP.NET[^]
Forms Authentication Configuration and Advanced Topics (C#)[^]

Hope it helps!
--Amit
 
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