Re: Log off

From: Date: Fri, 10 Aug 2001 10:42:37 +0000
Subject: Re: Log off
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62152@lists.php.net to get a copy of this message
Yes I have done so before posting this message. It says that by sending 401 can log off a user. I tried and failed,it still holds u/p. This is why I have posted the message to find if there is a different way of doing it. code <? if($log=='off') { Header("WWW-authenticate: Basic realm=\"Test\""); Header("HTTP/1.0 401 Unauthorised"); Header("Location: http://www.mysite.com/index.php3"); exit; } ?> On Fri, 10 Aug 2001, Andras Balogh wrote: > Hi, > > As is many cases read the manual: > http://www.php.net/manual/en/features.http-auth.php > > > BW, > Andras. > ----- Original Message ----- > From: "AJDIN BRANDIC" <abrandic@coventry.ac.uk> > To: <php-general@lists.php.net> > Sent: Friday, August 10, 2001 1:20 PM > Subject: [PHP] Log off > > > > Hi > > > > I am using HTTP authorisation to allow users to log in to vew specific > pages. > > What can I use for log off?. > > > > I tried using > > header ("HTTP/1.0 401 Unauthorised"); > > header ("Location: > > http://www.mysite.com/index.php3"); > > > > OR > > > > $PHP_AUTH_USER=0; > > > > but it didn't work. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#62152) next »