This would allow all pages to access that value, however there is some debate over the use of this type of variable. Search this forum for the word Session Variable for more info.
better still, you can set up an application variable in the global.asa file (which must be in the root of your website).
In global.asa, you should have the following (in VBscript):
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("variablename" = value
End Sub
</SCRIPT>
etc. You can then access the variable in any page by using application("variablename"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.