Re: Worker process and Session state



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" <Diffident@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4DA25172-BEBF-4266-802E-687FDA2B6764@xxxxxxxxxxxxxxxx
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!!


.



Relevant Pages

  • Re: ISS 6.0 and tilde
    ... Unfortunately I can't test this just now as I have to run the server in IIS ... sessions persist in a classic ASP application without relying on session ... > What you are probably seeing, though, is that the worker process itself ... > not have access to check the file system for that file. ...
    (microsoft.public.inetserver.iis)
  • Re: session variables, Timeout and Recycling
    ... I would like to understand better the 'Shutdown worker process after being ... What does idle mean? ... Application and Session. ... as recycling the worker process) causes all of these items to get dumped - ...
    (microsoft.public.dotnet.framework.aspnet)
  • aspnet_state.exe Internals Info Needed
    ... I noticed when storing large amounts of information in the StateServer ... Service that this does not increase in size, the worker process itself seems ... I thought the State Server actually stored the session data itself, ... seem from my example that this is not the case and that the memory space ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Timeout period not seeming to work correctly
    ... >> for recycling the ASP.NET worker process. ... >> restarts, causing the loss of all your session variables, ... >> if you're using InProc state management. ... When the worker process recycles, you say you lose your Session variables, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Site Maintenance - HttpModule
    ... The ability to put the website into maintenance mode is required. ... the user if you set up session state in SQL Server. ... session state a bit, but takes the session out of the server. ... A better option is to have a web farm for the siteyou manage. ...
    (microsoft.public.dotnet.framework.aspnet)