Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48420 invoked by uid 500); 19 Dec 2001 02:00:44 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 48409 invoked from network); 19 Dec 2001 02:00:44 -0000 Received: from tomts12.bellnexxia.net (HELO tomts12-srv.bellnexxia.net) (209.226.175.56) by daedalus.apache.org with SMTP; 19 Dec 2001 02:00:44 -0000 Received: from bronfman504 ([65.94.8.249]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with SMTP id <20011219020051.TMTL26587.tomts12-srv.bellnexxia.net@bronfman504> for ; Tue, 18 Dec 2001 21:00:51 -0500 From: "Joshua Slive" To: Subject: RE: How do you keep track of logins? Date: Tue, 18 Dec 2001 21:03:25 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Lamar Seifuddin [mailto:lamarts@flash.net] > 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 login. If you need to track unique users, you must use cookies or session ID's embedded in the URL. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org