View Full Version : Global.asa
Morgoth
09-06-2002, 07:01 PM
Personal question to reduce all the tention in this forum:
What info do you put in your Global.asa?
I have a counter for users that are on my website :)
EasilyBefuddled
09-06-2002, 07:06 PM
Dare I ask what global.asa does (or is supposed to do)?
Mine says:
<OBJECT RUNAT=Server SCOPE=Session ID=MyInfo PROGID="MSWC.MyInfo">
</OBJECT>
Morgoth
09-06-2002, 07:12 PM
http://www.asp101.com/resources/apps_sessions_gasa.asp
http://www.haneng.com/lessons_19.asp
http://www.w3schools.com/asp/asp_globalasa.asp
Here you are.
EasilyBefuddled
09-06-2002, 07:20 PM
Thanks. I'll start reading now.
whammy
09-07-2002, 11:36 PM
I usually use it for application-wide variables and stuff too (not to mention counters, seeing how many users are on the website, etc.) - for instance things you know will be the same all over your website - then if you need to change something, you only need to change it in one place... i.e.:
Application("WEBMASTER_EMAIL") = "me@mydomain.com"
:)
Morgoth
09-08-2002, 02:07 AM
Whammy, can you store strings in there?
Like not have to lincude my config file on every page, but just have my global.asa store StrWebmaster = "Me@Home.sad"
Would that work?
whammy
09-08-2002, 02:31 AM
Yes, you can. But not with "store" (never heard of that)... just use what I showed. :)
Morgoth
09-08-2002, 04:51 PM
Store - To hold on to, to stock up, to save, to collect
But I recently found out it needs that application thing.
so my thing would be:
Application("StrWebmaster") = "Me@Home.sad"
>>>-------> I'm still leanring!!!
<edit>
Thank you Whammy!
</edit>
whammy
09-10-2002, 02:10 AM
P.S. I wasn't aware there was a lot of tension in this forum? If there is, and I'm overlooking it, please let me know. :)
I'm going to close this thread since it's been answered to allow for future questions... global.asa files among them. :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.