Global ASA Issues

Discussion in 'ASP General' started by MDW, Jan 10, 2005.

  1. MDW

    MDW Guest

    I would like to start using the global.asa file on an ASP app to store
    information like connection strings, contact e-mail addresses, etc. However,
    the person I report to is nervous about this, mostly because he's never been
    exposed to it.

    He is of the opinion (because he "thinks he heard somewhere") that
    application variables - and the ASA file in general - is bad. He's giving me
    a bit of push-back until I can satisfy him that introducing this won't cause
    problems for the site.

    Anything I could find on the MSDN just says how to use it, how it works,
    etc...which is stuff I already know. Has anyone had any problems with the ASA
    file? Does it cause any performance lagging? Is there any chance that the
    Application_OnStart event won't fire?

    Thanks.
    --
    Hmm...they have the Internet on COMPUTERS now!
    MDW, Jan 10, 2005
    #1
    1. Advertising

  2. MDW

    Patrice Guest

    The problem he heard is likely with storing objects...

    Try :
    http://support.microsoft.com/kb/243543/EN-US/



    Patrice


    --

    "MDW" <> a écrit dans le message de
    news:...
    > I would like to start using the global.asa file on an ASP app to store
    > information like connection strings, contact e-mail addresses, etc.

    However,
    > the person I report to is nervous about this, mostly because he's never

    been
    > exposed to it.
    >
    > He is of the opinion (because he "thinks he heard somewhere") that
    > application variables - and the ASA file in general - is bad. He's giving

    me
    > a bit of push-back until I can satisfy him that introducing this won't

    cause
    > problems for the site.
    >
    > Anything I could find on the MSDN just says how to use it, how it works,
    > etc...which is stuff I already know. Has anyone had any problems with the

    ASA
    > file? Does it cause any performance lagging? Is there any chance that the
    > Application_OnStart event won't fire?
    >
    > Thanks.
    > --
    > Hmm...they have the Internet on COMPUTERS now!
    Patrice, Jan 10, 2005
    #2
    1. Advertising

  3. MDW

    CJM Guest

    Storing connection strings and similar things in Application variables is a
    very sensible approach - though not the only approach.

    As Patrice has indicated, storing objects (particular non-agile objects
    AFAIK), however, is a Bad Thing (tm), for the reasons indicated.

    I would try and turn the argument around on your boss - what argument has he
    got against Application Variables...??



    "MDW" <> wrote in message
    news:...
    >I would like to start using the global.asa file on an ASP app to store
    > information like connection strings, contact e-mail addresses, etc.
    > However,
    > the person I report to is nervous about this, mostly because he's never
    > been
    > exposed to it.
    >
    > He is of the opinion (because he "thinks he heard somewhere") that
    > application variables - and the ASA file in general - is bad. He's giving
    > me
    > a bit of push-back until I can satisfy him that introducing this won't
    > cause
    > problems for the site.
    >
    > Anything I could find on the MSDN just says how to use it, how it works,
    > etc...which is stuff I already know. Has anyone had any problems with the
    > ASA
    > file? Does it cause any performance lagging? Is there any chance that the
    > Application_OnStart event won't fire?
    >
    > Thanks.
    > --
    > Hmm...they have the Internet on COMPUTERS now!
    CJM, Jan 10, 2005
    #3
  4. MDW

    MDW Guest

    > I would try and turn the argument around on your boss - what argument has he
    > got against Application Variables...??


    As I said, he "heard they were bad"...and then it falls on me to prove or
    disprove the theory.

    His biggest concern, I think, is that it would degrade performance. However,
    we're talking about a matter of half a dozen string variables. Nothing too
    frightening, at least to me. (No need to worry about my trying to store
    objects; I graduated from the school of "create - use - destroy" programming.)

    Other than with objects, would the use of application variables have a
    NOTICABLE effect on performance? I don't think our site has ever had more
    than 100 simultaneous users.
    MDW, Jan 10, 2005
    #4
  5. MDW

    MDW Guest

    Thanks Patrice. I printed that article (and another one referenced by that
    article). That should help.

    "Patrice" wrote:

    > The problem he heard is likely with storing objects...
    >
    > Try :
    > http://support.microsoft.com/kb/243543/EN-US/
    >
    >
    >
    > Patrice
    >
    >
    > --
    >
    > "MDW" <> a écrit dans le message de
    > news:...
    > > I would like to start using the global.asa file on an ASP app to store
    > > information like connection strings, contact e-mail addresses, etc.

    > However,
    > > the person I report to is nervous about this, mostly because he's never

    > been
    > > exposed to it.
    > >
    > > He is of the opinion (because he "thinks he heard somewhere") that
    > > application variables - and the ASA file in general - is bad. He's giving

    > me
    > > a bit of push-back until I can satisfy him that introducing this won't

    > cause
    > > problems for the site.
    > >
    > > Anything I could find on the MSDN just says how to use it, how it works,
    > > etc...which is stuff I already know. Has anyone had any problems with the

    > ASA
    > > file? Does it cause any performance lagging? Is there any chance that the
    > > Application_OnStart event won't fire?
    > >
    > > Thanks.
    > > --
    > > Hmm...they have the Internet on COMPUTERS now!

    >
    >
    >
    MDW, Jan 10, 2005
    #5
  6. MDW

    McKirahan Guest

    "MDW" <> wrote in message
    news:...
    > > I would try and turn the argument around on your boss - what argument

    has he
    > > got against Application Variables...??

    >
    > As I said, he "heard they were bad"...and then it falls on me to prove or
    > disprove the theory.
    >
    > His biggest concern, I think, is that it would degrade performance.

    However,
    > we're talking about a matter of half a dozen string variables. Nothing too
    > frightening, at least to me. (No need to worry about my trying to store
    > objects; I graduated from the school of "create - use - destroy"

    programming.)
    >
    > Other than with objects, would the use of application variables have a
    > NOTICABLE effect on performance? I don't think our site has ever had more
    > than 100 simultaneous users.


    "Application variables are good."
    http://www.learnasp.com/learn/globalproblems.asp

    "What the benefits are of using session and application variables"
    http://www.devarticles.com/c/a/ASP/Maintaining-Session-State-With-ASP
    McKirahan, Jan 10, 2005
    #6
  7. MDW

    MDW Guest

    Very helpful. However, a question. On the first article you referenced, it says

    "Of course Application variables have no dependence on cookies. They are not
    required at all."

    However, according to Microsoft
    (http://support.microsoft.com/kb/175167/EN-US/), application variables DO
    require cookies.

    "The Session and Application variables are stored on the server. A
    SessionID, which is generated at the start of an ASP session, is an in-memory
    cookie that is stored on the client to identify the Session variables. As a
    result, the client must have cookies enabled in the browser for Session and
    Application variables to work."

    Which is right?

    "McKirahan" wrote:

    > "MDW" <> wrote in message
    > news:...
    > > > I would try and turn the argument around on your boss - what argument

    > has he
    > > > got against Application Variables...??

    > >
    > > As I said, he "heard they were bad"...and then it falls on me to prove or
    > > disprove the theory.
    > >
    > > His biggest concern, I think, is that it would degrade performance.

    > However,
    > > we're talking about a matter of half a dozen string variables. Nothing too
    > > frightening, at least to me. (No need to worry about my trying to store
    > > objects; I graduated from the school of "create - use - destroy"

    > programming.)
    > >
    > > Other than with objects, would the use of application variables have a
    > > NOTICABLE effect on performance? I don't think our site has ever had more
    > > than 100 simultaneous users.

    >
    > "Application variables are good."
    > http://www.learnasp.com/learn/globalproblems.asp
    >
    > "What the benefits are of using session and application variables"
    > http://www.devarticles.com/c/a/ASP/Maintaining-Session-State-With-ASP
    >
    >
    >
    MDW, Jan 10, 2005
    #7
  8. MDW

    CJM Guest

    "MDW" <> wrote in message
    news:...
    >> I would try and turn the argument around on your boss - what argument has
    >> he
    >> got against Application Variables...??

    >
    > As I said, he "heard they were bad"...and then it falls on me to prove or
    > disprove the theory.
    >
    > His biggest concern, I think, is that it would degrade performance.
    > However,
    > we're talking about a matter of half a dozen string variables. Nothing too
    > frightening, at least to me. (No need to worry about my trying to store
    > objects; I graduated from the school of "create - use - destroy"
    > programming.)
    >
    > Other than with objects, would the use of application variables have a
    > NOTICABLE effect on performance? I don't think our site has ever had more
    > than 100 simultaneous users.


    Performance-wise it will be at least as fast as storing them in an ini
    file/the registry/a DB.

    And broadly speaking, it will also be quicker to develop and easier to
    maintain than many alternatives...

    There are other more subtle benefits - storing a connection string in the
    one place helps ensure that connection pooling is used...

    Chris
    CJM, Jan 10, 2005
    #8
  9. MDW

    Adrienne Guest

    Gazing into my crystal ball I observed =?Utf-8?B?TURX?=
    <> writing in
    news::

    > "McKirahan" wrote:
    >
    >> "MDW" <> wrote in message
    >> news:...
    >> > > I would try and turn the argument around on your boss - what
    >> > > argument has he got against Application Variables...??
    >> >
    >> > As I said, he "heard they were bad"...and then it falls on me to
    >> > prove or disprove the theory.
    >> >
    >> > His biggest concern, I think, is that it would degrade performance.
    >> > However, we're talking about a matter of half a dozen string
    >> > variables. Nothing too frightening, at least to me. (No need to
    >> > worry about my trying to store objects; I graduated from the school
    >> > of "create - use - destroy" programming.)
    >> >
    >> > Other than with objects, would the use of application variables have
    >> > a NOTICABLE effect on performance? I don't think our site has ever
    >> > had more than 100 simultaneous users.

    >>
    >> "Application variables are good."
    >> http://www.learnasp.com/learn/globalproblems.asp
    >>
    >> "What the benefits are of using session and application variables"
    >> http://www.devarticles.com/c/a/ASP/Maintaining-Session-State-With-ASP
    >>

    > Very helpful. However, a question. On the first article you referenced,
    > it says
    >
    > "Of course Application variables have no dependence on cookies. They
    > are not required at all."
    >
    > However, according to Microsoft
    > (http://support.microsoft.com/kb/175167/EN-US/), application variables
    > DO require cookies.
    >
    > "The Session and Application variables are stored on the server. A
    > SessionID, which is generated at the start of an ASP session, is an
    > in-memory cookie that is stored on the client to identify the Session
    > variables. As a result, the client must have cookies enabled in the
    > browser for Session and Application variables to work."
    >
    > Which is right?
    >


    Best thing to do is to test it, then you know for sure. One of the
    benefits of having more than one browser, maybe IE, Firefox and Opera. Set
    one of them to accept NO cookies, one to only accept Session Cookies, and
    the last all cookies, then run a test.

    --
    Adrienne Boswell
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne, Jan 10, 2005
    #9
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darlene Gauthier

    PostRequestHandlerExecute event in global.asa

    Darlene Gauthier, Jul 23, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,412
    Karl Seguin
    Jul 23, 2003
  2. Kevin Spencer

    Re: global.asa file (count sessions)

    Kevin Spencer, Jul 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    347
    Kevin Spencer
    Jul 30, 2003
  3. DevBoy

    Global.asa File ?????

    DevBoy, Aug 12, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    347
    Rick Strahl [MVP]
    Aug 13, 2003
  4. Wayne
    Replies:
    2
    Views:
    456
    Wayne
    Nov 11, 2003
  5. mark | r

    global.asa issues..HELP!

    mark | r, Aug 4, 2003, in forum: ASP General
    Replies:
    2
    Views:
    89
    mark | r
    Aug 4, 2003
Loading...

Share This Page