Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
HI,

Is there any method other than authenticating a user other than forms auth. In MVC forms authentication hoe can we use sessions, Or is there any method to get the loggged in user details. I did by checking count of a user in DB for loggging in and use sessions for maintaining and clear cache for back button isue. I am confused with forms.

Please help
Posted

1 solution

You can just store the id of the logged in user in the session and write an authentication method which checks that, and add that attribute to your logged in methods.
 
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