We use .net framework 3.5 and C #.
We have a website that requires user login. Therefore, we use the database to verify the correct input / password.
Then we call FormsAuthentication.SetAuthCookie () , so the user we will register in my application.
And on all subsequent pages, we check with User.Identity.IsAuthenticated () if the user is logged in.
We want to keep this session even when the user closes the server.
What is the best way to do this?
We also have a problem with lost sessions, suddenly the user has lost his authenticated status, I think that with such new persistence we can also solve this problem.
(sorry for my english ..... portuguese speaker)
source share