Re: display online users using asp
- From: "McKirahan" <News@xxxxxxxxxxxxx>
- Date: Sat, 4 Jun 2005 07:06:56 -0500
"mallyonline" <malcolmkwhyte@xxxxxxxxxxxxxx> wrote in message
news:d7s1vc$6q6$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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....
>
>
> "mallyonline" <malcolmkwhyte@xxxxxxxxxxxxxx> wrote in message
> news:d7rrfb$78m$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > can anyone help with the code for this ?
> >
> > i would like to display the current users viewing a page
> >
> > thank you
> > malcolm
> >
First,
<%@ LANGUAGE="VBscrip" %>
should be
<%@ LANGUAGE="VBscript" %>
Second, just merge the above into your "global.asa" file.
.
- References:
- display online users using asp
- From: mallyonline
- Re: display online users using asp
- From: mallyonline
- display online users using asp
- Prev by Date: Re: display online users using asp
- Next by Date: adodb.recordset object and the IIS session object
- Previous by thread: Re: display online users using asp
- Next by thread: adodb.recordset object and the IIS session object
- Index(es):
Relevant Pages
|