.net - Asp.net "Remember Me" does not work through FormsAuthentication.RedirectFromLoginPage() -


In my login page I'm using FormsAuthentication.RedirectFromLoginPage () but the user is valid It does not follow the CreatePersistence cookie parameter. I searched in Google and modified my web. Confirm but still remember me the functionality does not work.

This is my sample code structure (using the asp.net login control as the login UI)

  if (MyService.ValidateUser (login user.username, Login user.password)) {FormsAuthentication.RedirectFromLoginPage (login user.USIR, login user. RememberMeSet); }  

the web. Conflict

& lt; Forms login login = "~ / account / login.aspx" timeout = "21600" cookieless = "autodetect" name = "MySiteAuth" sliding aspiration = "true" />

Even when the LoginUser.RememberMeSet is true (the user has selected the Remember me checkbox) the browser does not remember the session. So when I open the web site the next time I am presented with the log in page. Ideally the login page should come only when the last session is specifically logged out. Otherwise it should continue my session.

Does anyone have an explanation for this?

Thanks

check the link


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -