I am creating an asp.net mvc application. I want the session to never expire as soon as the user is logged in, unless the user clicks on logout.
What is the best way to do this?
I used
FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
and set createPersistentCookie to true, but still I'm logging out after a while.
source
share