Cookies in ASP.NET cause me some problems.
For the most part, I want to use cookieless sessions. This is mainly to solve the problem when safari won't let me set cookies from iFrame. So this part works fine. Harmless sessions do the job.
However, I have a page that is called from POST. It uses a message to pass in a hidden field from a form, which then does some things ... you really don't need to know that.
So it turns out that when cookieless sessions are enabled, POST is disabled, and only GETS can happen in ASP.NET web forms. This violates my functionality.
What I want to do is add the web.config file to the folder containing my POSTing pages in order to return to regular cookie sessions so that I can start my POST again, but this does not work.
<?xml version="1.0"?>
<configuration>
<system.web>
<sessionState cookieless="false" />
</system.web>
</configuration>
Does anyone know a way to create a folder with regular cookie sessions while the rest of the site is working with cookieless sessions?
source
share