|
|
|
|
|
| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: how does www.powerasp.com show the number of users currently online? |
From: |
Shailesh Lolam |
Date: |
4/11/2000 10:38:51 AM |
IP: |
203.94.239.76 |
Hi there,
See the Following Code add the Code in Global.asa
Application_OnStart()
Application("Users") = 0
End Sub
Sub Session_OnStart()
Application.Lock
Application("Users") = Application("Users") + 1
Application.Unlock
End Sub
Sub Session_OnEnd()
Application.Lock
Application("Users") = Application("Users") - 1
Application.Unlock
End Sub
The above code will help you to keep track of Users Online in the Application("Users") variable and where every u want u can retrieve it by
<%=Application("Users")%>
Good Luck
Shailesh Lolam |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|