Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Global ASA Issues

Reply
Thread Tools

Global ASA Issues

 
 
MDW
Guest
Posts: n/a
 
      01-10-2005
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!
 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      01-10-2005
The problem he heard is likely with storing objects...

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



Patrice


--

"MDW" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
 
 
 
CJM
Guest
Posts: n/a
 
      01-10-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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!



 
Reply With Quote
 
MDW
Guest
Posts: n/a
 
      01-10-2005
> 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.
 
Reply With Quote
 
MDW
Guest
Posts: n/a
 
      01-10-2005
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" <(E-Mail Removed)> a écrit dans le message de
> news:(E-Mail Removed)...
> > 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!

>
>
>

 
Reply With Quote
 
McKirahan
Guest
Posts: n/a
 
      01-10-2005
"MDW" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> > 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/M...State-With-ASP


 
Reply With Quote
 
MDW
Guest
Posts: n/a
 
      01-10-2005
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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > > 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/M...State-With-ASP
>
>
>

 
Reply With Quote
 
CJM
Guest
Posts: n/a
 
      01-10-2005

"MDW" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> 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



 
Reply With Quote
 
Adrienne
Guest
Posts: n/a
 
      01-10-2005
Gazing into my crystal ball I observed =?Utf-8?B?TURX?=
<(E-Mail Removed)> writing in
news:(E-Mail Removed):

> "McKirahan" wrote:
>
>> "MDW" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > > 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/M...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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WCCP on ASA & traffic between physical interfaces on ASA apsolar@gmail.com Cisco 3 02-15-2007 12:16 AM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 1 10-25-2006 06:50 PM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 0 10-25-2006 01:04 PM
Global variables on par with ASP's global.asa Wayne ASP .Net 2 11-11-2003 10:58 PM
global.asa issues..HELP! mark | r ASP General 2 08-04-2003 02:26 PM



Advertisments