I am trying to implement remember me functionality in login for my project using Asp.Net Form Authentication. The problem is once user logs in, he remains logged in even when the browser is closed and reopen. It seems that the Auth cookie is always persistent irrespective of whether user have checked remember me option or not.I have no idea what am i suppose to do??Can anyone guide me through??
I guess normally this line of code is enough to achieve what i want to:
FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe);