ASP.NET session state and multiple worker processes

前端 未结 4 1857
名媛妹妹
名媛妹妹 2020-12-05 02:50

I need to understand something about ASP.NET session state, as it applies to IIS 7 and ASP.net 3.5.

If an application is configured to use in-process session state,

4条回答
  •  佛祖请我去吃肉
    2020-12-05 03:41

    I may be wrong, but as far as I know, by default you only have 1 worker process per application domain with multiple worker threads to handle requests. In this case In-Proc Session State should work just fine (the default settings).

    But if you do have multiple worker processes (not just worker threads, actual worker processes) you do need out of process session state.

    I think having more than 1 worker process in ASP.NET is referred to web garden mode which you have to specifically enable and if you do, then you need out of process state management. See the comment box on this page under the In-Process Mode heading.

提交回复
热议问题