Is it possible to change global.asa from asp

  • Thread starter Cecil Westerhof
  • Start date
C

Cecil Westerhof

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?
 
B

Bob Barrows [MVP]

Cecil said:
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
 
C

Cecil Westerhof

Bob Barrows said:
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.
 
D

Dominique

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)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top