title: Session/Cookies are resetting to blank in Asp.Net MVC application in an iframe
body: <p>After updating the chrome to 80 (Version 80.0.3987.149 (64-bit)) recently and clearing cookies of the browser we are seeing below issue in our ASP.Net MVC application.</p>
  
  <p>Session/Cookies are resetting to blank when redirecting to other page. Application is embedded in a iFrame.</p>
  
  <p>I have tried setting Same site to "None" in web.config in below ways but none of them worked -</p>
  
  <pre><code>&lt;sessionState cookieSameSite="None" timeout="60" /&gt;
  
  &lt;httpCookies sameSite="None" /&gt;
  </code></pre>
  
  <p>Also installed URL rewrite to override set cookie on IIS -</p>
  
  <pre><code>&lt;rewrite&gt;
      &lt;outboundRules&gt;
          &lt;rule name="AddSameSiteCookieFlag"&gt;
              &lt;match serverVariable="RESPONSE_Set-Cookie" pattern="^(.*)(CFID|CFTOKEN|JSESSIONID|ASP.NET_SessionId)(=.*)$" /&gt;
              &lt;action type="Rewrite" value="{R:0};SameSite=None" /&gt;
          &lt;/rule&gt;
      &lt;/outboundRules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>Any help please...</p>
  
  <p>Thanks in advance.</p>