[pmwiki-users] Re: AuthUser - logout asks for user name and password?!
Rob Fisher
Rob at robfisher.freeserve.co.uk
Fri Sep 9 06:07:01 CDT 2005
>
> There's some code I recognize in simple.php. ;-)
>
> Try turning
>
> $Realm = "Some Realm";
>
> if (@$_GET['action'] == 'logout') {
> Header("WWW-Authenticate: Basic realm=\"$Realm\"");
> Header('HTTP/1.0 401 Unauthorized');
> exit;
> }
>
> into
>
> $Realm = "Some Realm";
>
> if (@$_GET['action'] == 'logout' && isset($_SERVER['REMOTE_USER'])) {
> Header("WWW-Authenticate: Basic realm=\"$Realm\"");
> Header('HTTP/1.0 401 Unauthorized');
> exit;
> }
>
> Hagan
Thanks Hagan - this solves the problem. I have also looked at your
suggesting regarding limiting the search for Guest users... I tried
pasting in the code you supplied, but it is not achieving the desired
result. I shall have a think and see if I can spot the problem though as
it does seem like a rather sensible idea.
Rob.
More information about the pmwiki-users
mailing list