https://notarealuser:nosuchp...@trac.example.com/myproject/
In this example everything under /myproject/ is protected by apache authentication.
I've implemented this with mod_rewrite as follows:
RewriteRule /([^/]+)/logout$ https://your-login-name:-@%{HTTP_HOST}/$1/goodbye [L]
RewriteRule /([^/]+)/goodbye$ https://%{HTTP_HOST}/$1/ [L]
The result is a display of the login dialog with the Name: field pre-populated with "your-login-name", otherwise unable to access anything under /myproject/
I have no idea if this will work consistently, but it does well with Safari and Firefox on a Mac.
Quinn
http://trac-hacks.org/wiki/TrueHttpLogoutPatch
--
Evolution: Taking care of those too stupid to take care of themselves.