httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Automatic script execution whenever a directory is referenced
Date Tue, 24 May 2005 09:25:58 GMT
> -----Original Message-----
> From: Drew.Shelton@sematech.org [mailto:Drew.Shelton@sematech.org]
> Sent: Montag, 23. Mai 2005 22:35
> To: users@httpd.apache.org
> Subject: [users@httpd] Automatic script execution whenever a directory
> is referenced
> 
> 
> I want to setup password protection on all files served in a 
> directory.  I want the authentication to expire without 
> relying on the user to kill the browser session, so I'm 
> pretty sure I must do that from the server side rather than 
> Apache basic authentication because of the browser cache.  I 
> don't know what the "best" way is to do that, but my idea is 
> to configure my directory to have a CGI script run 
> automatically before any file within that directory is 
> served.  Is this possible?

Not using basic authentication.

There is no concept of expiration in basic_auth. The browser sends the credentials with every
subsequent request in the same realm. The only way to "expire" the browser is to shut it down.


On the server side, you only ever get a request with or without an Authorization header. If
it's with a valid auth header, you serve the content.

The only way to expire logins is with session management (ie, cookies).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> Thanks,
> Drew
> 
> ==============================================================
> ==============
> Drew Shelton                            drew.shelton@sematech.org
> VMS Systems Administrator               office: 512-356-7575
> Sematech                                fax:    512-356-7600
> 2706 Montopolis Drive
> Austin, TX 78741-6499                I speak for myself only, 
> not Sematech.
>     "There are two major products that come out of Berkeley: 
> LSD and UNIX.
>     We don't believe this to be a coincidence." - Jeremy S. Anderson
> ==============================================================
> ==============
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen-
bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature.
It is not related to the exchange or business activities of the SWX Group. Le présent e-mail
est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message