Greetings. I have a problem with Remember Me possibility. It didn't remember my login. First of all I checked FormsAuthentication.SetAuthCookie( userName, createPersistentCookie );
in SignIn
method. The second parameter is true
if I checkbox is cheked. Also I've checked the cookie named .ASPXAUTH
( http://img412.imageshack.us/img412/3585/cookieb.png ).
It expires on a day about. But it's not works. If i try open web application after 10 minutes (for example), I will logged out.
How can I fix it and how can I enlarge cookie lifetime?
views:
58answers:
1
A:
Seems like you're using membership. Something like...
http://dotnetblogger.com/post/2010/01/11/ASPNET-Membership-Remember-Me-That-Actually-Works.aspx
should work.
Mostly, you need FormsAuthentication.RedirectFromLoginPage()
kervin
2010-09-09 15:56:45
thanks. I've also increase cookie lifetime and it's works.
ck3g
2010-09-10 13:36:37