473,785 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ 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>A6zxS0rn8Uy DgQKvmrzToA==</Id>
Nov 18 '05 #1
4 1747
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*******@dotn et247.com> wrote in message
news:u4******** *******@tk2msft ngp13.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>A6zxS0rn8Uy DgQKvmrzToA==</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*******@dotn et247.com> wrote in message
news:u4******** *******@tk2msft ngp13.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>A6zxS0rn8Uy DgQKvmrzToA==</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:
HttpApplicatio n 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.c om...
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:
HttpApplicatio n 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=tr ue


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
1772
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 every 5 mins a check on the unused lifetime of all cached resources and frees them if they exceed their idle time limit. I made also a log object wich logs HTTP application level (triggered from global.asax) and web method level events (triggered
7
1756
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 need to send message to a 'server wide' application from any HttpApplication on the same server and obtain responses (wich may be simple strings or streams for example), this 'server wide' application is also
3
1609
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 eBiz.SDK.Integration.DataStore myDataStore .Connect(connStr) Can I also store the IDataStore object in my HttpApplication instance. If so, how? Also, how would I call myDataSore from other pages. Or should I say, how do I then have access to myDataSore from other...
2
8358
by: Breeto | last post by:
Can anyone please tell me why the following doesn't work... using System; using System.Web; namespace AspTests {
5
1540
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 on only one instance (the one that was created first). Anyone has an idea? How to test:
2
4587
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 into the process, does each instance of HttpApplication keep its own set of HttpModule instance or HttpModules are shared among all HttpApplication instances? 2. In case of HttpApplication keep its own set of HttpModule, does the HttpModule...
0
1556
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 using the page. This only happens when a user is redirected to the default page. Redirecting to any other page does not create this problem. From my understanding, HttpApplication should remain instantiated until the last user left the site and...
4
1349
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...) ? Thanks for any hints. Urs
0
1916
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 the data in the cache expires (either due to expiration or due to dependency change) do all instances of the Http Application replace the cached data at the same time. Thus what I am essentially asking is, in a single server scenario if multiple...
0
10324
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4050
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 we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.