Worker process and Session state

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!!
 
B

bruce barker \(sqlwork.com\)

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top