note 41698 deleted from features.http-auth by irchtml

From: Date: Tue, 20 Apr 2004 11:20:22 +0000
Subject: note 41698 deleted from features.http-auth by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68363@lists.php.net to get a copy of this message
Note Submitter: ximo ---- 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.

« previous php.notes (#68363) next »