Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking How Many Users Currently On Site

Status
Not open for further replies.
this is one of the few things that's actually easier with asp...

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Blasphemy!!



Hope This Helps!

Ecobb
Beer Consumption Analyst

"My work is a game, a very serious game." - M.C. Escher
 
I know but it's true

Global.asa
Code:
Sub Session_OnStart
	Application.Lock
	Application("WhosOn") = Application("WhosOn") + 1
	Application.UnLock
End Sub

Sub Session_OnEnd
	Application.Lock
	Application("WhosOn") = Application("WhosOn") - 1
	Application.UnLock
End Sub

in the page to display the users simply place.
Code:
<%=application("WhosOn")%>

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top