httpd-users mailing list archives

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

There is a CGI::Session module available at CPAN, which is built to solve
the statelessness of the HTTP :). Its actually build on Apache::Session by
Jeffrey Baker, but has much better OO interface (resembles

The documentation also has several examples too.

I also have an article on managing login with CGI::Session at . I haven't got any
feedbacks yet.

Joshua Slive wrote:

  joshua: > From: Lamar Seifuddin []
  joshua: > I'm trying to keep track of the number of
  joshua: > logins:
  joshua: >
  joshua: > I'm using the standard mod_auth with .htaccess, etc.
  joshua: >
  joshua: > counter.cgi script I wrote, isn't "tied" to login,
  joshua: > just to the webpage.  I can "refresh" all day long and
  joshua: > it counts.
  joshua: >
  joshua: HTTP, and HTTP basic auth in particular, is a stateless protocol.  There is
  joshua: no concept of being logged in and logged out.  If your browser sends the
  joshua: correct password, it gets the resource.  Your browser must send the password
  joshua: every time.  It just happens that it remembers the password for you so you
  joshua: don't have to retype it every time.  So in other words, every hit is a
  joshua: login.
  joshua: If you need to track unique users, you must use cookies or session ID's
  joshua: embedded in the URL.
  joshua: Joshua.
  joshua: ---------------------------------------------------------------------
  joshua: The official User-To-User support forum of the Apache HTTP Server Project.
  joshua: See <URL:> for more info.
  joshua: To unsubscribe, e-mail:
  joshua: For additional commands, e-mail:

Sherzod Ruzmetov <>, Consultant


| There is nothing wrong with your tools.|
| But we can make a better one.          |

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