Posted on: 4/9/2011 8:10:00 AM | Views : 439

Good evening all,
We have an web app for which we've rolled our own authentication. Sometimes the users are logged out for no apparent reason. The session and authentication periods are set to 1 hour and 2 hours respectively, yet when the user enters data into a form and clicks OK, he/she will sometimes be logged out even though having logged in just a few minutes prior. The authentication code is pretty simple.
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, logonUser.ID.ToString(), DateTime.Now, DateTime.Now.AddMinutes((int)((Session.Timeout) * 2)), false, logonUser.ID.ToString());
Any ideas? Thanks in advance!
 
...

Go to the complete details ...