RE: [PHP] HT authentication question
| From: | John Holmes | Date: | Wed, 25 Sep 2002 04:55:10 +0000 |
| Subject: | RE: [PHP] HT authentication question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117513@lists.php.net to get a copy of this message | ||
> Is there a PHP function/method that destroys or expires a HT
> authentication
> session? So, for example, you're using a .htaccess file to control
access
> to a directory on a server, is there a way to destroy that session
without
> closing the browser window?
Quote from manual:
Both Netscape Navigator and Internet Explorer will clear the local
browser window's authentication cache for the realm upon receiving a
server response of 401. This can effectively "log out" a user, forcing
them to re-enter their username and password. Some people use this to
"time out" logins, or provide a "log-out" button.
---John Holmes...