httpapplication instance doubt

  • Thread starter sikander khan via .NET 247
  • Start date
S

sikander khan via .NET 247

hello all !
i know that there exists one to one relationship between HttpApplication instance and a request. My doubt is that instance associated with that request until session times out. i mean lifetime here means session time or not.
 
B

bruce barker

an HttpApplication lifespan is the life of the appdomain assoicated with the
vdir, not session. its created when the appdomain is loaded (first hit to
site), and destroyed when the appdomain unloaded (application is recycled).

-- bruce (sqlwork.com)

sikander khan via .NET 247 said:
hello all !
i know that there exists one to one relationship between HttpApplication
instance and a request. My doubt is that instance associated with that
request until session times out. i mean lifetime here means session time or
not.
 
H

Hermit Dave

HttpApplication does not have a one to one relation with request

you have One HttpApplication, One Cache, One Session per user (if you have
session state - web.config).
The Request object has a life time of individual requests where instance of
page class is created and the request is processed. The response object
again has a life time associated with delievery of processed request.
They are all bound togather by what is called Context.

http://msdn.microsoft.com/library/en-us/dnaspp/html/dngrfTheASPNETHTTPRuntime.asp?frame=true

http://msdn.microsoft.com/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp?frame=true



--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
 
S

Scott Allen

If we are talking about the HttpApplication class, like the class that
Global derives from in IDE generated global.asax files, then there are
*multiple* instances of this class. They are kept in a pool, and one
instance is pulled from the pool and associated with a request during
it's lifetime, then returns to the pool.

I have some details and references in my article here:
http://odetocode.com/Articles/89.aspx
 

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,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top