httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject RE: How do you keep track of logins?
Date Wed, 19 Dec 2001 02:03:25 GMT

> From: Lamar Seifuddin []

> I'm trying to keep track of the number of
> logins:
> I'm using the standard mod_auth with .htaccess, etc.
> counter.cgi script I wrote, isn't "tied" to login,
> just to the webpage.  I can "refresh" all day long and
> it counts.

HTTP, and HTTP basic auth in particular, is a stateless protocol.  There is
no concept of being logged in and logged out.  If your browser sends the
correct password, it gets the resource.  Your browser must send the password
every time.  It just happens that it remembers the password for you so you
don't have to retype it every time.  So in other words, every hit is a

If you need to track unique users, you must use cookies or session ID's
embedded in the URL.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message