vanillapod
MIS
Hi, I'm using the global.asa to provide a hit counter, anyway I need to store the actual number in a txt file as the counter keeps resetting! The code i'm using is below can anyone help me out with the storing in a text file bit???
Cheers
(code taken from somewhere but can't remember where!)
<SCRIPT RUNAT="Server" LANGUAGE="VBScript">
sub Session_OnStart
'Lock the Application for concurrency issues
Application.Lock
'Increment the counter
Application("Hits"
= Application("Hits"
+ 1
'Unlock the Application
Application.UnLock
end sub
sub Application_OnStart
'This variable Hits will store the # of visitors
Application("Hits"
= 0
'From the date stored in AsOfDate...
Application("AsOfDate"
= Date
end sub
</SCRIPT>
Cheers
(code taken from somewhere but can't remember where!)
<SCRIPT RUNAT="Server" LANGUAGE="VBScript">
sub Session_OnStart
'Lock the Application for concurrency issues
Application.Lock
'Increment the counter
Application("Hits"
'Unlock the Application
Application.UnLock
end sub
sub Application_OnStart
'This variable Hits will store the # of visitors
Application("Hits"
'From the date stored in AsOfDate...
Application("AsOfDate"
end sub
</SCRIPT>