title: ASP.NET authentication cookies not stored when using jQueryMobile on iPad
body: <p>I have an ASP.NET MVC2 app using jQueryMobile.  It is a secure app, and i'm using the ASP.NET authentication within the MVC2 framework.</p>
  
  <p>I am using standard authentication via the web.config:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/LogOn" timeout="2880" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>I am securing certain controllers using the Authorize attribute:</p>
  
  <pre><code>[Authorize]
  public class ClientController : Controller
  </code></pre>
  
  <p>All my web pages as based upon the same master page, which has a top-level container div as follows:</p>
  
  <pre><code>&lt;div class="page" data-role="page"&gt;
  </code></pre>
  
  <p>It all works perfectly on Chrome.  However, on the iPad the authentication does not work.  It seems that the authentication cookie never gets stored on the client.  The iPad keeps displaying the logon page, even if I type correct credentials.  I have tried setting Safari Accept Cookies settings to 'Always' too.</p>
  
  <p>Has anyone had any success deploying a jQueryMobile app using ASP.NET MVC2 authentication on an iPad?  Thanks.</p>
  
  <p><strong>Edit:</strong>  Ok, I have ascertained that the cookie is indeed being stored on the client, but it appears that jQueryMobile+Safari are somehow consipring to continually display the login page rather than redirecting me to the page that should be shown according to the logon redirect.  </p>