all groups > inetserver asp components > june 2005 >
You're in the

inetserver asp components

group:

display online users using asp



Re: display online users using asp McKirahan
6/4/2005 7:06:56 AM
inetserver asp components: [quoted text, click to view]

First,
<%@ LANGUAGE="VBscrip" %>
should be
<%@ LANGUAGE="VBscript" %>

Second, just merge the above into your "global.asa" file.

display online users using asp mallyonline
6/4/2005 9:15:23 AM
can anyone help with the code for this ?

i would like to display the current users viewing a page

thank you
malcolm

Re: display online users using asp mallyonline
6/4/2005 11:06:20 AM
Sorry cancel that

i found this
<%
'Write the amount of active visitors
Response.Write(Application("strVisitors"))
%>

and this =global.asa

<%@ LANGUAGE="VBscrip" %>
Sub Application_OnStart
Application("CurrentUsers")=0
End Sub
Sub Application_OnEnd
End Sub
Sub Session_OnStart
Session.Timeout=25
Session(Start")=Now
Application.Lock
Application("CurrentUsers ")
=Application("CurrentUsers")+1
Application.unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("CurrentUsers ")=Application("CurrentUsers ")-1
Application.Unlock
End Sub
</SCRIPT>

Problem with this is i already use the global.asa file and to overrite it
with this code will make the database results wizard fail???
as i found out to my detriment this morning..
how can i fix this now?? if i replace the global.asa file with that of the
original used for displaying the database results, then the script above
will no longer work grrr how do i get round this one....


[quoted text, click to view]

AddThis Social Bookmark Button