Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Please Help! Application Vars.

Hi,
It seems that the IIS doesnt keep any application vars.
Look at this:
<%@ Language = VBscript %>
<%
Option explicit

Application("X") = "Abc"

Response.Write "There are " & Application.Contents.Count & _
" Application variables<P>"
%>
When i run it, it detects One App. Var.
But when i run the next asp page after running the previous, it doesnt remember
the X var:

<%@ Language = VBscript %>
<%
Option explicit
Response.Write "There are " & Application.Contents.Count & _
" Application variables<P>"
%>

Do you have any idea what the problem is?
(i've put global.asa in the same folder of the asps, and the directory is
an application directory, what did i forget?)

-another question, How do i Reset the Application vars? delete them all?
[the stop button on the IIS doesnt seem to remove those vars!]

Thanks!
[978 byte] By [Michael] at [2007-11-9 15:36:01]