Worker process and Session state

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

I have a question about worker processes and session state. If I set-up a
web farm architecture by having multiple worker processes serving a single
application, how will the session state be affected?

For example, let's consider that a user A requested for page A and after
some time the same user requests page B. In both these cases, will a new
Session ID be created?

If we create a web farm architecture, will each worker process be in it's
own application domain?

Can someone please explain me what's the relation between worker process and
application domain? App. domain hosts worker process or is application domain
inside worker process?

Thanks for your clarifications!!
 
all asp.net code run in an appdomain hosted by the worker process. a process
can host multiple domain. inproc sessions are stored in the appdomain, so
should not be used with web gardens or web farms.

sessionid are just id tickets stored in cookie. one is generated if the
cookie does not currently have one. then session is looked up (or created)
by the id.

so a session id will be shared across a web garden or farm, but if inprc
session is used, the session data will not be shared.

-- bruce (sqlwork.com)
 
Back
Top