Re: ASP Application Object

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jason Brown [MSFT] (i-brjaso_at_online.microsoft.com)
Date: 11/25/04


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. 


Relevant Pages

  • Re: ASP Application Object
    ... > then call on the login page. ... This is done everytime a user connects to ... I'm not checking for the existence ... I just call the routine everytime the page is ...
    (microsoft.public.inetserver.asp.general)
  • ASP Application Object
    ... then call on the login page. ... This is done everytime a user connects to ... I'm not checking for the existence ... I just call the routine everytime the page is ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP Application Object
    ... What's the benefits of using the global.asa file versus an asp ... >> then call on the login page. ... This is done everytime a user connects to ... I'm not checking for the existence ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP Application Object
    ... Sessions survive the ... > then call on the login page. ... This is done everytime a user connects to ... I'm not checking for the existence ...
    (microsoft.public.inetserver.asp.general)
  • Re: Please! Doesnt anyone know a better way to do this?
    ... account, they need to automatically be directed to the page to enter data ... session variable on the Account page. ... I assume here that you're checking a database when the user attempts to ... When a new user attempts to login or clicks to register, ...
    (microsoft.public.dotnet.framework.aspnet)