JERILYN SNIDER
JERILYN SNIDER

Reputation:

IIS Session State

Here's a story problem:

I have website set up in IIS 6.0 (Win 2003) and has checked the "allow session state" setting the configuration in IIS.

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

Upvotes: 4

Views: 1746

Answers (2)

Christopher G. Lewis
Christopher G. Lewis

Reputation: 4836

Also note, if the user hits an ASPX page, IIS will not start an ASP session, only an ASP.Net session. The session state is created by the ASP and ASP.Net ISAPI Filters, and the two are pretty much independent.

Upvotes: 0

womp
womp

Reputation: 116977

No, IIS will not start a session.

HTML pages are not handled by the ASP.Net pipeline, so they wouldn't be considered part of your web application. Session_Start() in your Global.asax file does not fire if you hit an HTML page.

You can verify this by putting a breakpoint in your global.asax file in the "Session_Start" function, and setting your startup page to be a simple HTML file.

Upvotes: 4

Related Questions