Re: PHP auth logout

From: Date: Thu, 30 Aug 2001 09:26:25 +0000
Subject: Re: PHP auth logout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65221@lists.php.net to get a copy of this message
> Thanks for all the answers to this question but hitting the back button will > work, no authorization required to see the pages all over. You need to get those pages to not be cached by the browser. http://php.net/header > Repost problem: > I'm having a PHP based auth. It seems that unset($PHP_AUTH_USER) or > unset($PHP_AUTH_PW) doesn't work. The *BROWSER* re-sends those variables, so your unset() has no meaning on the next page. > Also, 401 Unauthorized header does not > work also. What you need to do is re-send the challenge headers, *ONLY* with a new *REALM*. IE, keep track of what realm each user is in, and change it when you want them to be logged out. > Is there a way to logout and no back button or the user just have to close > his browser in order to accomplish this? Closing the browser is the best answer. You'll never get 100% no back button caching on every single minor browser release. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#65221) next »