471,122 Members | 884 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Worker process and Session state

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!!
Oct 23 '06 #1
1 1979
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)

"Diffident" <Di*******@discussions.microsoft.comwrote in message
news:4D**********************************@microsof t.com...
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!!

Oct 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by mark | last post: by
2 posts views Thread by John | last post: by
5 posts views Thread by J-T | last post: by
1 post views Thread by Pablo Bianco SE | last post: by
reply views Thread by Diffident | last post: by
3 posts views Thread by =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.