Implementing “Remember Me” Feature in ASP.NET MVC
I'm trying to implement a "remember me" feature to my login form. I am using ASP.NET MVC as my web application. I managed to get the cookie stuff working, but I failed to automatically login the user in case he/she checked the remember me checkbox before. I know what the problem is but I do not know how to solve it. In my HomeController I have the following: private LoginViewModel CheckLoginCookie() { if (!string.IsNullOrEmpty(_appCookies.Email) && !string.IsNullOrEmpty(_appCookies.Password)) { var login = new LoginViewModel { Email = _appCookies.Email, Password = _appCookies.Password };