Re: ASP Application Object
From: Jason Brown [MSFT] (i-brjaso_at_online.microsoft.com)
Date: 11/25/04
- Next message: Aaron [SQL Server MVP]: "Re: Err object VS. GetLastError()"
- Previous message: MEM: "Re: ASP Application Object"
- In reply to: MEM: "Re: ASP Application Object"
- Next in thread: Aaron [SQL Server MVP]: "Re: ASP Application Object"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Nov 2004 13:45:59 +1100
benefits vs an include? well, they're two different animals, but basically a
global.asa runs at the start of the session and the start of an application,
so it's the logical place to set app and session variables which don't
depend on some sort of user input.
no, a global.asa is not created automatically by IIS, but may be created by
your editor, depending on what you use
-- Jason Brown Microsoft GTSC, IIS This posting is provided "AS IS" with no warranties, and confers no rights. "MEM" <mmaxsom@citlink.net> wrote in message news:9403d191.0411241653.e427d8f@posting.google.com... > What's the benefits of using the global.asa file versus an asp > include? Also, when creating the application folder in IIS, does it > automatically create a global.asa file? > > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in > message news:<Oo$dh5Z0EHA.4004@tk2msftngp13.phx.gbl>... >> Yes, they are probably being overwritten. Is there any reason you're not >> creating the variables in Application_OnStart in a global.asa file? >> >> Ray at work >> >> "MEM" <mmaxsom@citlink.net> wrote in message >> news:9403d191.0411231233.48b78f46@posting.google.com... >> > Hello, >> > >> > I'm using application variables for a web based sales tracking >> > application. I use the variables for stuff like connection string, >> > database name, etc. I store the values in a asp file that is included >> > in a login page. The assignments are in a routine/procedure that I >> > then call on the login page. This is done everytime a user connects to >> > the login page. >> > >> > So, what's happening to the variables? Are they being overwritten >> > everytime a user accesses the page? I'm not checking for the existence >> > of the variables. I just call the routine everytime the page is >> > accessed. I know the values are shared for all users but, I was >> > wondering if I should check for the existence of the variables? Will >> > it free up resources? Should I be using locks? >> > >> > Thanks.
- Next message: Aaron [SQL Server MVP]: "Re: Err object VS. GetLastError()"
- Previous message: MEM: "Re: ASP Application Object"
- In reply to: MEM: "Re: ASP Application Object"
- Next in thread: Aaron [SQL Server MVP]: "Re: ASP Application Object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|