Why does this forms authentication require double login sometimes?

view full story

http://serverfault.com – I am trying to implement forms authenication in ASP.NET 2010 through a login page and a database table of usernames and passwords. Some of the time some of the users must authenicate twice, which is getting annoying to those users and they are complaining. In the web.config I have <authentication mode="Forms"> <forms loginUrl="WebFormLogon.aspx" defaultUrl="WebformHomepage.aspx"/> </authentication> In the code behind file after validating the password and username I do the following: FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, usernam (HowTos)