title: Mixed Mode Cookieless/Cookie Sessions in ASP.NET
body: <p>Cookies in ASP.NET are causing me some problems. </p>
  
  <p>For the most part, I want to use cookieless sessions. This is mainly to get around a problem where safari won't let me set the cookies from an iFrame. So that part all works fine. Cookieless sessions do the job.</p>
  
  <p>However, I have a page which is called from a POST. It uses a post to pass in a hidden field from a form which then does some stuff....you don't really need to know what.</p>
  
  <p>So it turns out that when cookieless sessions are on, the POST is disabled and only GETS can happen in ASP.NET web forms. This is breaking my functionality.</p>
  
  <p>What I want to do is add a web.config to the folder that contains my POSTing pages to go back to normal cookie sessions so I can get my POSTs working again, but this doesn't work.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
   &lt;configuration&gt;
    &lt;system.web&gt;
       &lt;sessionState cookieless="false" /&gt;
    &lt;/system.web&gt;
   &lt;/configuration&gt;
  </code></pre>
  
  <p>Does anyone know a way of making a folder work with normal cookie sessions while the rest of the site works with cookieless sessions?</p>