<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Monie Studios &#187; counter</title>
	<atom:link href="http://www.moniestudios.com/tag/counter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moniestudios.com</link>
	<description>So much to learn, so little time!</description>
	<lastBuildDate>Fri, 21 Oct 2011 11:30:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>ASP Active Visitors Counter</title>
		<link>http://www.moniestudios.com/tutorials/asp_counter/</link>
		<comments>http://www.moniestudios.com/tutorials/asp_counter/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 23:30:53 +0000</pubDate>
		<dc:creator>Monie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[visitor]]></category>

		<guid isPermaLink="false">http://www.moniestudios.com/?p=53</guid>
		<description><![CDATA[Learn how to do a simple visitor access counter with ASP.]]></description>
			<content:encoded><![CDATA[<p>How many people are accessing your web site at any particular time? With this script we will be able to know and show in our pages the number of active visitors in a given moment. The script has two parts: a file name global.asa, and a small code you must insert in your pages to show the number of active users.</p>
<h2>The Global.ASA file</h2>
<p style="clear: both;">In this quick little tutorial, we are going to take a look at building a routine that checks to see how many people are accessing your web site at any particular time. In order to achieve this, we are going to use something called the global.asa file.</p>
<h2>What is the global.asa file?</h2>
<p>As you all probably know, &#8220;ASP&#8221; stands for Active Server Pages. We use ASP pages to execute script on the server enabling us to interact with databases and create dynamic content for our web site. &#8220;ASA&#8221; on the other hand stands for &#8220;Active Server Application&#8221;.</p>
<p>The &#8220;global.asa&#8221; file is created in order to contain scripts that can be accessed &#8220;globally&#8221; by the entire web site.<br />
The Global file is a file in which (amongst other things) you can specify event scripts and declare objects that have session or application wide scope. It is not a content file and nothing in it is displayed directly to the users; instead it stores event information and objects used globally by the application.</p>
<ul>
<li>The file must be named global.asa</li>
<li>It must be stored in the root directory your application/website (/global.asa).</li>
<li>Your application can only have one global.asa file.</li>
</ul>
<h2>What are Applications and Sessions?</h2>
<p><strong>Application:</strong><br />
As mentioned above, an application (in ASP terms) refers to your asp web site. An <span style="text-decoration: underline;">Application</span> starts when the web server is switched on and ends when the web server stops.</p>
<p><strong>Session:</strong><br />
A <span style="text-decoration: underline;">Session</span> starts from the time a visitor starts looking at your site and ends (in theory) when the visitor leaves your site. In practice though, a session has a 20 minute default &#8220;timeout”. In order to keep track of the session a cookie is created for the visitor. This cookie is deleted when the user closes his browser. All session data is stored on the server.</p>
<h2>Global.asa file content.</h2>
<p>A typical gobal.asa file would contain the following events:</p>
<ul>
<li><strong>Application_OnStart</strong> &#8211; Is executed when the server is switched on and before the first session is started.</li>
<li><strong>Application_OnEnd</strong> &#8211; Is executed when the application is finished (i.e. the server is switched off).</li>
<li><strong>Session_OnStart</strong> &#8211; Is executed when the server creates a new session (i.e. when a new client accesses your web site).</li>
<li><strong>Session_OnEnd</strong> &#8211; Is executed when a session is abandoned or after certain period of inactivity between the visitor and the server (by default after a lapse of 20 minutes from the last request from a visitor the server will consider he is not going to come back and will delete any information related to that session).</li>
</ul>
<h2>Script for the global.asa file:</h2>
<pre class="brush: vb; title: ; notranslate">
&lt;Script Language=&quot;VBScript&quot; RUNAT=&quot;Server&quot;&gt;
Sub Application_OnStart
    Application( &quot;WhosOnline&quot; ) = 0
End Sub
Sub Application_OnEnd
End Sub
Sub Session_OnStart
    Application.Lock
    Application( &quot;WhosOnline&quot; ) = Application( &quot;WhosOnline&quot; )+1
    Application.UnLock
End Sub
Sub Session_OnEnd
    Application.Lock
    Application( &quot;WhosOnline&quot; ) = Application( &quot;WhosOnline&quot; )-1
    Application.UnLock
End Sub
&lt;/Script&gt;
</pre>
<h2>What the script does…</h2>
<table class="MsoNormalTable" style="border: 1pt solid windowtext; width: 450.75pt;" border="1" cellpadding="0" width="601">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 16.75pt;" width="22" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">1</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&lt;Script Language=&#8221;VBScript&#8221;   RUNAT=&#8221;Server&#8221;&gt; </span><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;"> </span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Opens the script. Note that you must never use the ASP &lt;%   %&gt; delimiters in a global.asa file</span></p>
</td>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">2</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Sub Application_OnStart</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Sets up the Application subroutine when the server starts</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">3</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application( &#8220;WhosOnline&#8221; ) = 0</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Names the Application &#8220;WhosOnline&#8221; and sets initial   value to zero.</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">4</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">End Sub</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Closes the Application subroutine set up procedure.</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">5</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Sub Application_OnEnd</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" rowspan="2" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Closes the Application subroutine in the event of the server   closing down</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">6</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">End Sub</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">7</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Sub Session_OnStart</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Sets up a subroutine for when a session opens.</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">8</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application.Lock</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Locks access so that only 1 person at a time can write to a   session. </span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">9</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application( &#8220;WhosOnline&#8221; ) =   Application( &#8220;WhosOnline&#8221; )+1</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Increments the count by 1 every time a new session is created</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">10</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application.UnLock</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Unlocks the application so that the next visitor can create a   session. </span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">11</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">End Sub</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Ends that section of the subroutine.</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">12</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Sub Session_OnEnd</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Sets up a subroutine for when a session closes</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">13</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application.Lock</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Locks access so that only 1 person at a time can write to the   session. </span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">14</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application( &#8220;WhosOnline&#8221; ) =   Application( &#8220;WhosOnline&#8221; )-1</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">decreases the count by 1 every time a session is closed.</span></p>
</td>
</tr>
<tr style="height: 17.25pt;">
<td style="border: 1pt solid windowtext; padding: 1.5pt; height: 17.25pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">15</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt; height: 17.25pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">Application.UnLock</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt; height: 17.25pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Unlocks the application </span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">16</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">End Sub</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Ends this section of the subroutine.</span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid windowtext; padding: 1.5pt;" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #000066;">17</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 190pt;" width="253" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 8pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;">&lt;/Script&gt;</span></p>
</td>
<td style="border: 1pt solid windowtext; padding: 1.5pt; width: 238pt;" width="317" valign="top">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; color: #76923c;">Closes the script.</span></p>
</td>
</tr>
</tbody>
</table>
<h2>Script for displaying the results on a web page&#8230;</h2>
<p>Displaying the results on a page is simply a case of adding this 1 line of code to the area on your page where you want the number to be displayed.</p>
<pre class="brush: vb; title: ; notranslate">
There are currently &lt;%=Application(&quot;WhosOnline&quot;)%&gt; active visitors!
</pre>
<p>See how simple it is in retrieving the value of your active visitors counter stored in the application object. Now, every time a visitor comes to your .asp application / homepage you can see the actual number of visitors in your page. Also, you can extend the code above to use images of numbers as your counter display.</p>
<p>And that&#8217;s about it really. Just a few things to remember!</p>
<ul>
<li>You can only have one global.asp file for your web site but that file can contain more than one sub routine.</li>
<li>The global.asp file must live in the root folder for your site.</li>
<li>If you already have a global.asp for your site simply add the code we have been discussing to the file.</li>
<li>If you are embarrassed by the lack of people on your site at any particular time you can cheat by changing the &#8220;0&#8243; in line 3 to a higher starting number.</li>
</ul>
<p>Have fun with ASP…!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moniestudios.com/tutorials/asp_counter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

