Click here to Skip to main content
15,843,133 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new in ASP.NET. I am making a school website where students can log in and out with their ID and password. Student IDs and passwords are saved in a SQL database that is on the same server on which website is hosted. I want to log in/out like on, where you log in with our email and password and then remain signed in until you click on 'Sign out'.

Thank you.
Updated 14-May-10 23:52pm

If you want to support role management in your website, Microsoft have provided some handy features that you might want to look at. One thing you need to look at is the Role Provider. Have a read of this[^] to see how to use the role provider, and how to link it to the login controls.
Share this answer
Jitendra Zaa 13-May-10 2:57am    
Thanks Pete for such good Information. I am also newbie in .NET
Pete O'Hanlon 13-May-10 3:26am    
Jitendra - I'm glad that I could help. Don't worry about being a .NET newbie; we all started off that way and it's good to see you're willing to learn. Top notch.
For this query you have to use login control
Hers an example for that, please help your self
Login control examples
Thanks & Regards
Radix :)
Share this answer
Ankur\m/ 15-May-10 3:00am    
Did not Pete mean the same thing? What's the use putting same answers again?

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