[thelist] Tracking Sessions on NT....
Ryan Mayberry
Ryan at applicor.com
Tue Apr 17 11:37:03 CDT 2001
I don't go as far as footpring memory tracking, but I use the following to
track how many user sessions are open..
Stick the following code in a file called global.asa and place in your root
directory..
<SCRIPT LANGUAGE=VBSCript RUNAT=Server>
Sub Session_OnStart
Session.Timeout = 20
Session("Start") = Now
Application.Lock
Application("NumVisitors") = Application("NumVisitors") + 1
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.Unlock
End Sub
</SCRIPT>
Then you can display the number of sessions by using...
<% Response.Write Application("ActiveUsers") %>
HTH...
-----Original Message-----
From: Anthony Baratta [mailto:Anthony at Baratta.com]
Sent: Tuesday, April 17, 2001 11:34 AM
To: Evolt Mailing List
Subject: [thelist] Tracking Sessions on NT....
IIS Gurus....
I want to track the number of sessions that are in use on a particular
server (IIS 5.0 for now). Also I'd like to know the memory footprint of the
sessions while active.
Anyone know of any tools that are available to do this?? I don't see any
built in way to track with via ASP.
----
Anthony Baratta
President
Keyboard Jockeys
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list