You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Adrian <ad...@silversprings.me.uk> on 2007/01/12 15:51:52 UTC
Users on a web site
Hi
sorry if this has been done many times before but I'm new to this and Google has yet to help me so I hope you can!
I had a site on IIS using asp I had a global.asa that counted uses on and off the site with a time out of 20min all worked OK but now I'm on a Linux host with ASP I cannot get it to work! Can it be done? if so where am I doing wrong?
thanks
global.asa
Sub Session_OnStart
Session.Timeout = 2 '20 minute timeout
Application.Lock
Application("visitors_online") = Application("visitors_online") + 1
Application.Unlock
FrontPage_ConvertFromODBC '==FrontPage Generated==
End Sub
Sub Session_OnEnd
Application.Lock
Application("visitors_online") = Application("visitors_online") - 1
Application.Unlock
End Sub
test.asp
<%=Application("visitors_online")%>
Re: Users on a web site
Posted by Warren Young <wa...@etr-usa.com>.
Adrian wrote:
> Google has yet to help me ...
> Sub Session_OnStart
Why did you turn to Google before reading the documentation and the FAQ
on the web page for this package?
http://apache-asp.org/faq.html#VBScript%20or%2007fa600d
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org