With global.asa application variables can be set. Later can a script in your
application change the value of those variables. But when IIS is restarted
the old values are used again. Is there a way to get the changes that are
done into global.asa?

Re: Is it possible to change global.asa from asp by Bob

Bob
Thu May 06 05:51:03 CDT 2004

Cecil Westerhof wrote:
> With global.asa application variables can be set. Later can a script
> in your application change the value of those variables. But when IIS
> is restarted the old values are used again. Is there a way to get the
> changes that are done into global.asa?

While it may be possible, I do not recommend it. Instead, you should move
away from hard-coding those values into your global.asa. Instead, use code
in global.asa to read the values from some external source, such as a
database or an xml file, both of which are easy to modify at runtime.

My recommendation is based on my bias against hard-coding any "magic" values
into any code, not just global.asa.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



Re: Is it possible to change global.asa from asp by Cecil

Cecil
Thu May 06 07:27:14 CDT 2004

"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:eu0cFg1MEHA.1608@TK2MSFTNGP12.phx.gbl...
> Cecil Westerhof wrote:
> > With global.asa application variables can be set. Later can a script
> > in your application change the value of those variables. But when IIS
> > is restarted the old values are used again. Is there a way to get the
> > changes that are done into global.asa?
>
> While it may be possible, I do not recommend it. Instead, you should move
> away from hard-coding those values into your global.asa. Instead, use code
> in global.asa to read the values from some external source, such as a
> database or an xml file, both of which are easy to modify at runtime.

Is a good idea. I'll think about. At the moment they have not really decided
if they want the possibility to change the values through ASP. It is about
logging parameters. On the one hand they like the idea of changing the
values through the web. On the other hand they think it makes changing the
logging parameters to easy. But when they want, I'll do it in this way.



Re: Is it possible to change global.asa from asp by Dominique

Dominique
Thu May 06 17:03:13 CDT 2004

messing with the global.asa will probably terminate your current session on
the server anyhow

try saving the global while ppl r surfing, their sessionids will be
recreated, and sessions abandoned...

cheers :0)


"Cecil Westerhof" <someone@microsoft.com> wrote in message
news:eJzRzU1MEHA.556@tk2msftngp13.phx.gbl...
> With global.asa application variables can be set. Later can a script in
your
> application change the value of those variables. But when IIS is restarted
> the old values are used again. Is there a way to get the changes that are
> done into global.asa?
>
>