I am trying to use FormsAuthentication to save a user's preference to stay logged in, but in testing, when I have not logged in for a few hours (not sure of the exact time), I have to add my username again. In our case, we are not taking the user straight in, we just populate the the username and check the box that says remember it. Can someone show me where it is not right...why I have to re-add my username after a few hours of not logging in?
From an earlier post, I've been led to believe that the problem lies in the fact that I set a cookie manually, then use the SetAuthCookie method. I did this because if I did not call SetAuthCookie, the security set up in web.config would not let me get past the login page. Am I way off base in how I am doing this? Is there another way to do this, so I can have the cookie persist and get past the login page?//Setting the cookie
FormsAuthenticationTi ...
Go to the complete details ...