title: A required anti-forgery token was not supplied or was invalid -- Safari only
body: <p>I have an asp.net mvc 2 project with the typical xss protection</p>
  
  <p><code>&lt;%=Html.AntiForgeryToken() %&gt;</code> inside each form and <code>[ValidateAntiForgeryToken]</code> on each Post action.</p>
  
  <p>This works as expected in Chrome, Firefox and IE.</p>
  
  <p>But I get the following error in Safari (v 5.1.7).</p>
  
  <blockquote>
    <p>System.Web.Mvc.HttpAntiForgeryException:  A required anti-forgery
    token was not supplied or was invalid.</p>
  </blockquote>
  
  <p>I see the reason for the exception is the <code>RequestValidationToken</code> cookie that is created has an incorrect expiration date of <code>Mon, 01 Jan 2001</code>, while in the other browsers is is correctly set to <code>Session</code>.</p>
  
  <p><strong>How can I make Safari stop assigning a bogus expiration date to my Anti-Forgery cookie?</strong></p>