Click here to Skip to main content
15,216,269 members
Rate this:
Please Sign up or sign in to vote.
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 22:52pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
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.
Rate this:
Please Sign up or sign in to vote.

Solution 2

For this query you have to use login control
Hers an example for that, please help your self
Login control examples
Thanks & Regards
Radix :)
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100