Hey there, sorry re the delay in getting back re this subject.
I did re install IIS and also made sure that the tags were on either end of the code. Still get the same thing. Have tried a few versions of this global.asa file in a few Wrox books and get the same thing.
Currently I have done the following. I hope the detail helps.
1st: Created a Global.asa file with the following code.
<script language="vbscript" runat="server">
Sub Session_OnStart
Session("StartTime") = Now()
Application.Lock
Application("TotalNumberOfUsers") = _
Application("TotalNumberOfUsers") + 1
Application("CurrentNumberOfUsers") = _
Application("CurrentNumberOfUsers") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("CurrentNumberOfUsers") = _
Application("CurrentNumberOfUsers") - 1
Application.Unlock
End Sub
Sub Application_OnStart
Application("EMailAddress") = "
[email protected]"
End Sub
Sub Application_OnEnd
End Sub
</SCRIPT>
This asa file is in the following directory.
http://localhost/timber/session/global.asa
The session folder is marked as an application in IIS.
Secondly I have entered the following into my search page. Have also listed the directory of this folder. The reason I have this in my search.asp page is that I want people that login to see how many are logged in.
<body>
There have been <B><%= Session("VisitorID")%></B> total visits to this site.<BR>
You are one of <B> <%= Application("Active")%></B> active visitors.<BR>
Your session started at <%= Session("Start") %>
</p>
</body>
http://localhost/timber/html/search.asp
Let me know if I can supply more details.
Mally.