We have an ASP.NET MVC2 web application. For reasons beyond the scope of this problem, we decided to use the classic session state in the application. It implements the following session related features.
- The Session_Start event handler in global.asax saves the variable in the session. This refers to a workaround for session expiration detection.
The session used has the following meanings in web.config:
sessionState timeout = "30" mode = "InProc" cookieless = "UseCookies"
Form authentication is used; it has the following values ββset in web.config:
forms loginUrl = "~ / Account.aspx / LogOn" timeout = "1440" protection = "All" slideExpiration = "false"
The web application worked in IIS6 without problems until we deployed it to IIS7.5. On IIS7.5, everything except the session seems to work. The session seems to either regenerate or lose value; In short, this is not a stick, only in IE8; still works in Chrome and firefox.
A search on Google leads to possible answers; global.asax does not start in IIS7.5. Some guys got it as a web application in IIS7.5; but we run it as a site. Converting it to a web application does not seem to solve the problem for us, since we tried it too.
The configuration for our new server - Windows 2008 R2, IIS7.5, asp.net framework 2,3,5 and 4 are installed on the machine.
, , , google chrome firefox; , - cookie .
- , .
.