MVC2 Cookieless Session Using POST Error

For some reason, when a cookieless session is enabled in MVC2, the session identifier in the query string is reset with every form message that occurs. Is there a special route that needs to be configured for this?

Is there any other information I should be aware of?

Thank.

+3
source share
3 answers

The cookieless series work in MVC2, however you cannot use POST as a method for submitting a form. It only supports the use of GET. In addition, all the action paths in the forms must be updated to the following template:

<form action="<%= Response.ApplyAppPathModifier("/SomeController/SomeAction") %>" method="get">

. , web.config cookieless:

<system.web>
    <sessionState cookieless="true" regenerateExpiredSessionId="true"></sessionState>
</system.web>

!

POST Cookieless MCV2, . POST Cookieless ASP.NET , JavaScript.

+4
+1

Microsoft MS10-070 - : ASP.NET (2418042)

, KB.

Http.sys IIS

cookieless ( "/(S (...) F (...))/" ) Url. UrlSegmentMaxLength 260, MS10-070 . , .

!

0

All Articles