Re: auth_http
| From: | Justin Patrin | Date: | Mon, 13 Mar 2006 16:22:35 +0000 |
| Subject: | Re: auth_http | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23278@lists.php.net to get a copy of this message | ||
On 3/13/06, Frank Høvin <frank@neuni.com> wrote:
> Are there any hopes of anything happening with the auth_php module? I see
> there's a bug posted about problems with logout(). I've got the exact
>
> same problem myself, and nowhere have I been able to find a sollution. I
> just can't get the logout() function to work. As others have specified
>
You can't logout with HTTP Authentication (at least, not reliably).
Since this is a browser based authentication method (the browser sends
the login credentials with every web page call) there is no way that
you can force a user to logout. There is a way to simulate this with
most browsers (sending another 401 header) but not all browsers will
necessarily "logout" when this happens. Since this is browser based
authentication there is no way that you can know for sure that a user
will be logged out. If you need logout capabilities I suggest using
Auth, not Auth_HTTP.
http://www.usphp.com/features.http-auth.html
That all being said, the Auth_HTTP package could be altered to send a
new 401 header when logout() is called, but as I said above, this may
not work for all browsers and will also likely wipe out any saved
login information that the user entered.
> (not sure if it's posted in the bug thread) the problem seems to be
> independent of browser/platform. At least, I've tried with Firefox, IE,
> Opera,
>
> Opera for Mac, IE for Mac and Safari, without luck.
>
DO NOT use IE:mac. It's old, unmaintained, and has lots of problems.
>
>
> I also got tipped in the irc channel to offer to help with the bugs, as
> there hasn't happened much there for a while. I'd volunteer to help
>
> with this, if I knew what I'd have to do :-)
>
--
Justin Patrin