Archive for tag: Web App

ASP.NET forms authentication keeps displaying login page on iPad

ASP.NET forms authentication keeps displaying login page on iPad, when I was developing iPad web app, I have come across one of the bug that once we "Add as Home Screen" then we can create Web as App then once you have logged in then when we try and go through website somewhere it automatically clears the session out so then I have found out the solution, that we need to make changes inside web.config file and I had my my web.config file as following:

<authentication mode="Forms">
  <forms loginurl="/Account/LogOn" />
</authentication>

 Then, I have found out, and I have added timeout="2880" cookieless="UseCookies" as following: 

<authentication mode="Forms">
  <forms loginurl="/Account/LogOn" timeout="2880" cookieless="UseCookies" />
</authentication>

and it will start getting it working and you will not loose session.

If you have question don't forget to ask.

Thank you for going through