tips on implementing "Remember Me" feature in ASP.NET 2.0...

R

Rob R. Ainscough

I'm looking for some pointers or sample code I can go thru that implements a
"Remember Me" feature for a user's login credentials. I'd don't want to use
the "login" control provided by VS 2005 and was hoping there is some other
method?

Thanks, Rob.
 
Q

q

Cookies is the old school method (the method I use because I refuse to
use the non-standards compliant login controls)...

Just set a cookie on login...

Check the cookie when any page loads. If its not good, redirect them
to the login page.

If they go directly to the login page... check the cookie. If it's
good, redirect them to the main page you would get after login.

David Betz
WinFX Harmonics Blog
http://www.davidbetz.net/winfx/
 
R

Rob R. Ainscough

thanks -- is there any way to determine if Cookies are being blocked before
hand?
 
T

tdavisjr

You can try to set a temporary cookie. Then on the next line retreive
the cookie and test to see if it is null. If it is, then cookies is
turned off. Then you may have to resort to some other method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top