title: IIS forcing log in when already logged in MVC3
body: <p>I'm having a weird issue that I can't find any reference to on SO </p>
  
  <p>I deploy my app to staging server daily and it has stopped behaving properly</p>
  
  <p>When I Log in the address in my browser looks like so</p>
  
  <p><a href="http://x.x.x.x/(F(W24RTn2OAE25WANV8wtnrAEVS4VWP7InzD7rCS3narKQgB3F6eqHe04BLLdK2uv2RCzfrwzW5AMPbOGoN99C9aq5WMWP0_brrNTy1HD0EH1nU2G_be9gz_jXYwkZlaQDIjv4NPD-LVr9j2h2teipwjV0yPtr25wEeDrheFNaKcaHqblTFXnNZCjfTJkEJxIN0))/Controller/Action/25" rel="nofollow">http://x.x.x.x/(F(W24RTn2OAE25WANV8wtnrAEVS4VWP7InzD7rCS3narKQgB3F6eqHe04BLLdK2uv2RCzfrwzW5AMPbOGoN99C9aq5WMWP0_brrNTy1HD0EH1nU2G_be9gz_jXYwkZlaQDIjv4NPD-LVr9j2h2teipwjV0yPtr25wEeDrheFNaKcaHqblTFXnNZCjfTJkEJxIN0))/Controller/Action/25</a></p>
  
  <p>If I delete the junk in there manually so that I can navigate to /Controller/Action/25 I am forced to log in again ... upon doing so I am redirected to the correct page but all that junk is back again</p>
  
  <p><a href="http://x.x.x.x/(F(W24RTn2OAE25WANV8wtnrAEVS4VWP7InzD7rCS3narKQgB3F6eqHe04BLLdK2uv2RCzfrwzW5AMPbOGoN99C9aq5WMWP0_brrNTy1HD0EH1nU2G_be9gz_jXYwkZlaQDIjv4NPD-LVr9j2h2teipwjV0yPtr25wEeDrheFNaKcaHqblTFXnNZCjfTJkEJxIN0))/Controller/Action/25" rel="nofollow">http://x.x.x.x/(F(W24RTn2OAE25WANV8wtnrAEVS4VWP7InzD7rCS3narKQgB3F6eqHe04BLLdK2uv2RCzfrwzW5AMPbOGoN99C9aq5WMWP0_brrNTy1HD0EH1nU2G_be9gz_jXYwkZlaQDIjv4NPD-LVr9j2h2teipwjV0yPtr25wEeDrheFNaKcaHqblTFXnNZCjfTJkEJxIN0))/Controller/Action/25</a></p>
  
  <p>Also, it seems to be a related issue, my autocomplete textboxes no longer work... the calls never hit the DB.</p>
  
  <p>Both pieces of functionality work fine locally on my IIS Express when in debug mode of the source code so I'm thinking it's the staging server IIS... but am unsure where to look to clear up this issue.. an ideas?</p>
  
  <p>Here is the only thing my web.config is doing with forms authentication</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/LogOn" 
           timeout="2880" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>At login the action method is the default </p>
  
  <pre><code>FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe);
  </code></pre>
  
  <p>This is happening on every browser on my VM and local machine both, but not on another PC. I've refreshed all browsers, deleted all cached from each  browser</p>
  
  <p>This does appear to be a cookie thing. In Chrome I can see the cookie when I log in to the site in debug mode in the dev tools. Using the same browser if I log in to the site pointing at the staging server there is no cookie being set.</p>
  
  <p>Why would there not be a cookie being set if I am not doing anything to prevent the cookie and have deleted cache, etc?</p>