|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Global.asa location ? |
From: |
web@rt |
Date: |
1/11/2000 2:53:35 PM |
IP: |
212.122.47.21 |
Hi,
Im using PWS 4 and I want to keep some visitors-statistics using the Application and Sesion objects in global.asa
Trouble is that it not seems to be working
Is there a special location that this has to be or can it be another dir than the root ?
Thnx in adv
I give you my code here (its basic-code) :
<script language="VBScript" runat="server">
Const ForWriting = 2, ForReading = 1
Sub Application_Start
Application.Lock
Application("totalvisits") = 0
Application("active") = 0
Application.Unlock
End Sub
Sub Application_End
End Sub
Sub Session_Start
Application.Lock
Application("totalvisits") = Application("totalvisits") + 1
Application("active") = Application("active") + 1
Application.Unlock
Session("start") = Time
End Sub
Sub Session_End
Application.Lock
Application("active") = Application("active") - 1
Application.Unlock
End Sub
</script> |
Follow Up - Re: Global.asa location ? - Jerry 2/15/2000 8:08:54 AM
|
|

|
|
|
|
|
|
|
|
|
|