smcculloch posted on October 13, 2005 00:00
I've checked in a small change for users online in DotNetNuke 3.2 tonight.
When counting anonymous users, the code was mistakenly counting web crawlers, rss clients, etc as anonymous users.
An anonymous user is identified by assigning a GUID to that client and then giving it a cookie. Most robots/scripts don't support cookies so they were being added as a unique user on each request. A check has been added to check for cookie support before adding it as an anonymous users.
Incidently, to check for cookie support is very simple:-
if Request.Browser.Cookies then
' Do Work
end if