<div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste">The Session state in any web technology depend on cookie at the client end to store
and resend session id back and forth between client browser and web server.</div> <div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste">But Asp.net also supports cookieless sessions with
the following attribute addition in the web.config within system.web node.</div> <div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"> </div> <div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;"
id="_mcePaste"> </div> <div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste">With the above config setting, it carry the session id in the page url instead of cookie.</div> <div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;"
id="_mcePaste"> </div> <div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste">Please take a look at the following two page's Page_Load method code before we run them in both normal and
cookie less mode.</div><div>But Asp.net also supports cookieless sessions with the following attribute addition in the web.config within system.web node.</div>
As Levi stated above, cookieless sessions are not supported in ASP.NET MVC (only in WebForms), and it's likely that we will never support cookieless sessions in MVC.
Marked as answer by ricka6 on Mar 26, 2010 06:10 PM
I found this issue after I deployed it to our IIS 6 server. It works fine in the Visual Studio development web server. Any ideas?
I might rename this forum "Works in Cassini (AKA ASP.NET Visual Studio development web server) but not on the reall IIS. You should test early/often on a reall IIS server.
Works in Cassini (AKA ASP.NET Visual Studio development web server) but not on the reall IIS
In my opinion too. In Cassini the default security is not enforced - so lost of bugs, coming from database connection and finished with impersionation, could be avoided.
However, I think Cassini is a necessary step on learning ASP.NET - it is like WebForms versus MVC ;-)
bradwils
Contributor
5779 Points
691 Posts
Microsoft
Re: Is Using (Html.BeginForm()) broken with cookieless sessions and IIS 6?
Mar 18, 2010 03:14 PM|LINK
As Levi stated above, cookieless sessions are not supported in ASP.NET MVC (only in WebForms), and it's likely that we will never support cookieless sessions in MVC.
ricka6
All-Star
15070 Points
2272 Posts
Microsoft
Moderator
Re: Is Using (Html.BeginForm()) broken with cookieless sessions and IIS 6?
Mar 23, 2010 03:43 PM|LINK
I might rename this forum "Works in Cassini (AKA ASP.NET Visual Studio development web server) but not on the reall IIS. You should test early/often on a reall IIS server.
ignatandrei
All-Star
134527 Points
21579 Posts
Moderator
MVP
Re: Is Using (Html.BeginForm()) broken with cookieless sessions and IIS 6?
Mar 23, 2010 05:53 PM|LINK
In my opinion too. In Cassini the default security is not enforced - so lost of bugs, coming from database connection and finished with impersionation, could be avoided.
However, I think Cassini is a necessary step on learning ASP.NET - it is like WebForms versus MVC ;-)