I've been self-debating a small issue for a small
project that I'm developing, and thought I'd pass it on to see if I can get any
feedback from the experts in the field: I have a pair of login/logout CGI
scripts on a machine that I recently "bumped" from mod_cgi to mod_perl.
They
You should really have a look at Apache::AuthCookie. This module does
pretty much exactly what you are looking to build. I think it'll even
handle your guest logins.
If you are still keen on rolling your own module, this module will give
you some great hints on how to write an Authentication