IIS Session Status

Here is the story:

I have a website configured in IIS 6.0 (Win 2003) and have checked the "allow session state" configuration settings in IIS.

If the user goes directly to the static html page on my site (and not on the asp or aspx page), does IIS start a session for the user or not?

+4
source share
2 answers

No, IIS does not start a session.

HTML pages are not processed by the ASP.Net pipeline, so they will not be considered part of your web application. Session_Start () in your Global.asax file does not work if you click on an HTML page.

This can be verified by setting a breakpoint in the global.asax file in the "Session_Start" function and setting the start page in a simple HTML file.

+4
source

Also note: if a user clicks on an ASPX page, IIS does not start an ASP session, but only an ASP.Net session. Session state is created by ASPAP and ASP.Net ISAPI filters, and they are fairly independent.

0
source

All Articles