Re: HTTP Authentication and PHP

From: Date: Mon, 23 Jul 2001 07:53:25 +0000
Subject: Re: HTTP Authentication and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59134@lists.php.net to get a copy of this message
Try this when you want to logout: <? header( 'WWW-Authenticate: Basic realm="Private"'); header( 'HTTP/1.0 401 Unauthorized' ); ?> //elias "Jason Rennie" <jwrennie@bigpond.com> wrote in message news:Pine.LNX.4.21.0107231302090.15377-100000@snuggles.fuzz.net.au... > Hi all, > > I've been playing around with PHP authentication via HTTP. > > I'm using apache, and when i use the header('WWW_Auth...) > > headers i get a username/password dialog pop up (as i wanted). > > How do i get those values unset in the browser, so that i can get a user > to re authenticate ? > > I need to get a user to re-auth part way through the use of the app i'm > writing becasue they are deleting files from a file system. > > Also how would i allow them to logout and let someone else log in. > > The docs seemed to imply that the headers command should have repopped the > auth box. > > Jason >

« previous php.general (#59134) next »