note 41698 added to features.http-auth
| From: | ximo at rn2 dot php dot net | Date: | Tue, 20 Apr 2004 09:20:52 +0000 |
| Subject: | note 41698 added to features.http-auth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68359@lists.php.net to get a copy of this message | ||
if ($realm == ")
$realm = mt_rand(1, 1000000000);
header('WWW-Authenticate: Basic realm='.$realm);
This code for logging out (posted by Paul) did the job for me, however the user would be prompted to
log in again and would then have to press OK three times to successfully log out (in Internet
Explorer), so it's far from waterproof. In Opera, closing the login prompt is enough. I would
recommend the links to Dev Shed's article mentioned earlier if you need a reliable
authentication method.
----
Manual Page -- http://www.php.net/manual/en/features.http-auth.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41698
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41698&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41698&report=yes
Search -- http://master.php.net/manage/user-notes.php