hi all, hope you are well. Just a quick question, been googling this one for a while but not found anything yet:
How does IIS deal with session state?
Many thanks for your time.

Recommended Answers

All 4 Replies

What do you mean by Session State? The default session has a timeout of 20 mins. Now if you are referring to View State i can probably give you more details.

I think view state and session state are dealt with by IIS in the same manner, i.e. using a dictionary (I think - I am unsure).

ViewState is held in a hidden field within the rendered webpage, session state is held in the memory of the webserver. Each session has a unique id called a sessionid. The sessionid is given to the client browser on first request and quoted by the browser on each subsequent request from then on. It may well be the sessions are held in memory in some kind of dictionary object, it makes sense but I have no idea.

commented: Helpful information, many thanks! +1

ok thanks hollystyles that has helped clear things up a lot. Cheers!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.