473,395 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Definition of Application_OnStart

Hi everyone,
Just wanted to ask about Application_OnStart in the
global.asa. Now if I request one page from a particular site when I
first go to that site say mysite.com/default.asp that triggers the
Application_OnStart function.

Now if I request another page on this same site, the Application_OnStart
function would not be called again.

To have it be called again I would have to restart the application in
IIS.

Where does IIS store the Application variables that I might set in the
global.asa eg Application("day") = "Monday"

Just wanted to confirm this is correct.

Whereas the Session_OnStart function is called everytime a new user hits
the site, ie starts the session?

Correct?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
1 1641
CB
Application and session variables are stored in memory (so if you use a great many session variables and have a great many simultaneous users, you can in theory crash your server, or if you are on a shared server, piss off your web host a lot.

If your website gets constant traffic, the application can stay active for weeks or months. It only times out after a defined period of no activity. For this reason, application variables are not good for something like day of the week. (Nor session variables, unless your users all have a strict 11:59 pm curfew.)
Jul 19 '05 #2

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

Similar topics

4
by: Mark Hoagland | last post by:
I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I have a series of IIS virtual...
4
by: David Logan | last post by:
Hello, I working on a project where we will be hosting several websites on the same server. These websites are built of a similar template and I want to use the URL as a key to get settings...
3
by: Bren | last post by:
Hi All In the global.asa file, when does the Application_OnStart event trigger? Is it:- 1. When the webserver starts or 2. When the website is first accessed AFTER the webserver has started. ...
0
by: Simon | last post by:
Hi, I am a little confused between Application_Start() and Application_OnStart(). Also, Session_Start() and Session_OnStart(). When exactly do these events trigger out? Thanks
3
by: F C | last post by:
Hello, I would like to find the virtual directory name from within Application_onStart in global.asa. I am in ASP, not ASPX. I have no server.AppPath. Thanks for your help. François.
19
by: Shiv Kumar | last post by:
I see that the Application_OnStart event is fired only once for a certain application. I'm interested in creating a "global" object (an object that will be available to all requests for the...
8
by: Marek | last post by:
Hi, Is Application_OnStart event hadler guaranteed to finish its execution before another HttpApplication object is brought into life? Marek
1
by: Bill Heckle | last post by:
Has anyone used the application_onstart call to prefill object pools? Are there any tricks to keep the objects alive?
1
by: archana | last post by:
Hi all, I am new to asp.net. I am having one confusion regarding application_onstart event. Let me explain what i am doing:- Say i have one xml file whose setting i am reading on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...
0
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...

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.