473,487 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

httpapplication instance doubt

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.
--------------------------------
From: sikander khan

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>A6zxS0rn8UyDgQKvmrzToA==</Id>
Nov 18 '05 #1
4 1734
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" <an*******@dotnet247.com> wrote in message
news:u4***************@tk2msftngp13.phx.gbl...
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. --------------------------------
From: sikander khan

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>A6zxS0rn8UyDgQKvmrzToA==</Id>

Nov 18 '05 #2
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...asp?frame=true

http://msdn.microsoft.com/library/en...asp?frame=true

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"sikander khan via .NET 247" <an*******@dotnet247.com> wrote in message
news:u4***************@tk2msftngp13.phx.gbl...
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.
--------------------------------
From: sikander khan

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>A6zxS0rn8UyDgQKvmrzToA==</Id>

Nov 18 '05 #3
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

--
Scott
http://www.OdeToCode.com

On Thu, 2 Sep 2004 17:03:07 +0100, "Hermit Dave"
<he************@CAPS.AND.DOTS.hotmail.com> wrote:
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...asp?frame=true

http://msdn.microsoft.com/library/en...asp?frame=true


Nov 18 '05 #4
no i meant it in context of current request.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:ec********************************@4ax.com...
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

--
Scott
http://www.OdeToCode.com

On Thu, 2 Sep 2004 17:03:07 +0100, "Hermit Dave"
<he************@CAPS.AND.DOTS.hotmail.com> wrote:
HttpApplication does not have a one to one relation with request

you have One HttpApplication, One Cache, One Session per user (if you havesession state - web.config).
The Request object has a life time of individual requests where instance ofpage 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...SPNETHTTPRunti

me.asp?frame=true


http://msdn.microsoft.com/library/en...ageobjectmodel.

asp?frame=true

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1751
by: AinO | last post by:
Hi, - I've created a webservice in VS2003/c# wich relies heavily on cache. It has a cache manager wich loads resources (triggered by requests) and wich has also a built in timer wich triggers...
7
1728
by: [Gauthier] | last post by:
Hello, I've a simple question: On a server that run multiple asp.net HttpApplication, is there any way with the asp.net framework to exchange data between different application? I basically...
3
1596
by: Stanley Alex | last post by:
I connect to myDataStore from different places but I really only need to connect once when the application loads. 'Connect to database. Dim myDataStore As IDataStore = New...
2
8322
by: Breeto | last post by:
Can anyone please tell me why the following doesn't work... using System; using System.Web; namespace AspTests {
5
1523
by: miha.valencic | last post by:
Hi! A while ago, I noticed that there are usually two instances of HttpApplication created within IIS (observed on WinXPPro). Why is that? Especially, since Application_Start handler is called...
2
4568
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
0
1538
by: Urs | last post by:
Hi The HttpApplication class instance goes unexpected away. In Global.asax, I checked the Appliaction_Load event and discovered, that this eventhandler is called even when another user is still...
4
1332
by: Urs | last post by:
Two questions: 1) What possibly causes HttpApplication from being unloaded or recycled? 2) How can I prevent HttpApplication from being unloaded or recycled (to prevent loss of session state...)...
0
1904
by: rbg | last post by:
Have a web application which uses Data Cache. I need to understand what happens when a new instance of the same web application is created for for serving concurrent clients. What happens when...
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.