Re: display online users using asp

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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.


.



Relevant Pages

  • Re: What is the name of the Language we are using & recommend book
    ... Can I have 2 sub forms in a form that are not sub forms of the other sub ... As for my process I am trying to create my Access Database in shells like ... QSL or Microsoft SQL Server Data Engine or what. ... language of queries, and the query design grid is just a tool to construct ...
    (microsoft.public.access.formscoding)
  • Re: Custom Login Screen
    ... Private Sub cmdLogin_Click ... On Error GoTo ErrorHandler ... You will need to enter your full path to the database file and MDW file in the appropriate places. ... Now make an MDE file from this MDB. ...
    (microsoft.public.access.security)
  • Re: Jeff C
    ... properly secure an Access database. ... Private Sub Form_Open ... Resume ExitPoint ... Dim db As DAO.Database ...
    (microsoft.public.access.formscoding)
  • Re: How to use a logon screen to log into a secured Database?
    ... > that appears with a secured database. ... >>On Error GoTo ErrorHandler ... >> Exit Sub ... Now make an MDE file ...
    (microsoft.public.access.security)
  • Re: linking databases
    ... Doug Steele, Microsoft Access MVP ... Sub chrCountry_AfterUpdatestring highlighted in yellow.The code as I ... I using the text box's [Event Procedure] After Update property on the ... The name of the column in the table in the 2nd database I want to ...
    (microsoft.public.access.externaldata)