httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "theshz" <>
Subject [users@httpd] Password protecting a directory without .htaccess
Date Fri, 19 Aug 2005 00:07:44 GMT
Hi, I'm trying to password protect a directory. The usual approach is to use
.htaccess files, which requires BasicAuthentication. The problem I have is
that my website already has a custom login/logout feature, so I can't ask
the user to type in name/password again to access the protected directory.
When the user is logged in, I'm keeping a variable in the session to
indicate that, I'd like to check this variable to allow/disallow access to
the directory. How can I achieve this?

(This seems to be the common feature out there, I think very few are using
the BasicAuthentication's usual popup window to enter name/password, instead
almost every site has their own login/logout page. How do they allow access
to some static contents?)



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

View raw message