Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Re: global asa


Message #1 by "0 0" <solopress_@h...> on Tue, 12 Dec 2000 10:35:28 -0000
this is the page counter script im using on the page that stores the number 

of people that visit the site . at the moment it only runs thru the 

lifecycle of an application . im presuming i need to write some code into 

the global asa to record the hit counter to a text file does anyone have an 

example please



<%Dim strUnique

strUnique = "Hits" & Request.ServerVariables("SCRIPT_NAME")

<%

Application.Lock



Application(strUnique) = Application(strUnique) + 1



Application.Unlock

%>



This is the global asa file

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">



Sub session_OnStart

End Sub



Sub Session_OnEnd

End Sub







</SCRIPT>





>


  Return to Index