﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Re-invent ASP.NET Hosting Community / ASP.NET 2.0 Hosting Discussion / Web Site Development / Design  / count number of visitors currently on my site / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Re-invent ASP.NET Hosting Community</description><link>http://community.re-invent.com/</link><webMaster>community@re-invent.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 09:18:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: count number of visitors currently on my site</title><link>http://community.re-invent.com/Topic633-13-1.aspx</link><description>Sure that should be fine</description><pubDate>Thu, 20 Sep 2007 16:27:54 GMT</pubDate><dc:creator>Re-invent (Paul)</dc:creator></item><item><title>count number of visitors currently on my site</title><link>http://community.re-invent.com/Topic633-13-1.aspx</link><description>Hi, i need to count number of users currently on my site. Is it OK to have something like this ?&lt;br&gt;&lt;br&gt;Thanks !&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Global.asax :&lt;br&gt;&lt;br&gt;SessionStart&lt;br&gt;  dim number as Integer = Application("NumOfUsers")&lt;br&gt;  if number.equals(nothing) then number = 0&lt;br&gt;  number += 1&lt;br&gt;  Application("NumOfUsers") = number&lt;br&gt;&lt;br&gt;SessionEnd&lt;br&gt;  dim number as Integer = Application("NumOfUsers")&lt;br&gt;  number -= 1&lt;br&gt;  if number &lt; 0 then number = 0&lt;br&gt;  Application("NumOfUsers") = number</description><pubDate>Thu, 20 Sep 2007 09:38:33 GMT</pubDate><dc:creator>zoran123456</dc:creator></item></channel></rss>