Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global.asa file not working??????? 1

Status
Not open for further replies.

Showtime99

Programmer
Sep 24, 2004
14
0
0
US
Hello,

I'm trying to use a global.asa file to get the number of current visitors on my site.

I'm using IPower to host my site. I've tried uploading the file to the root folder as well as the folder and nothing seems to work. Here is the code I'm using

<ScriptLanguage = "VBScript" RUNAT="Server">

SubApplication_OnStart
Application("WhosOnLine")=0
End Sub

SubApplication_OnEnd
End Sub

SubSession_OnStart
Application.Lock
Application("WhosOnline") =Application ("WhosOnline") + 1
Application.Unlock
End Sub

Sub Session_OnEnd
Application.Lock
Application("WhosOnline")=Application("WhosOnline") - 1
Application.Unlock
End Sub

</Script>

Thanks to anyone who can help and does, you will get stars
Showtime
 
You may want to contact your host to see if they support Global.asa for their virutal users..

- Jason

www.sitesd.com
ASP WEB DEVELOPMENT
 
I'll do that, thanks,....You didn't happen to see any errors in the file though did you?? I can't find any.

Showtime
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top