RE: [PHP] PHP and Apache authorization: how to logout. Help!

From: Date: Fri, 01 Feb 2002 23:53:30 +0000
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83220@lists.php.net to get a copy of this message
At 03:41 PM 2/1/02 -0800, Lazor, Ed wrote: >Even with a javascript function opening a new window and closing the old? > >-----Original Message----- >From: Matthew Walker [mailto:mwalker@mountaintopherbs.com] >Sent: Friday, February 01, 2002 3:42 PM > >I've done some investigating on my own. There is no way to do this. >Period. It's not QUITE as impossible as this, but nearly. You can give the browser a new challenge, and hope that it will clear the old username/password information that it's memorizing for the session. But I have found that certain combinations in certain browsers can subvert any such techniques. Thus, only quitting the browser entirely will force the browser to forget the authentication information. HOWEVER, certain users with IE 5 on the Mac have reliably reported that even quitting the browser doesn't work for them, but they instead have to restart their machines. (The HTTP specification mentions nothing about logout functionality.) Thus, if logging out is important to your application, then using browser-based authentication is not an acceptable solution. You'll have to use session management and build your own login screen. (Or, of course, reuse an existing one from one of the many good public libraries.) - Ken kenzo@free-music.com >-----Original Message----- >From: Aras Kucinskas [mailto:arasas@mail.lt] >Sent: Thursday, January 31, 2002 10:39 AM >To: php-general@lists.php.net >Subject: [PHP] PHP and Apache authorization: how to logout. Help! > >My site is in directory which is protected with .htaccess file. >I want to develope a logout function, which can reset Apache >authorization. > >What to do? >HTTP header... >unset $PHP_AUTH_USER ... > >Any suggestions

« previous php.general (#83220) next »