title: Forms authentication keeps logging out after inactivity
body: <p>When running locally, my site runs fine. However when on the live site, after around 10 seconds of inactivity I keep getting logged out.</p>
  
  <p>My web config line for authentication looks like the following:</p>
  
  <pre><code>&lt;forms name="RaiseFLAuthentication" loginUrl="home.aspx" cookieless="UseCookies" defaultUrl="/myPredictions.aspx" timeout="240" slidingExpiration="false"/&gt;
  </code></pre>
  
  <p>I have also tried putting <code>&lt;sessionState timeout="30"&gt;&lt;/sessionState&gt;</code>but this hasn't worked either.</p>
  
  <p>A second issue I am having is that although i have set the defaulturl to myPredictions.aspx, when I go to the url www.website.co.uk and log in, it does not redirect here, it stays as default url. Although again, running locally I have no problem.</p>
  
  <p>Can anyone suggest why either of these things are happening and how to fix this?</p>