Re: [PHP3] Problems with Caching, HTTP_AUTH and PHP_AUTH_USER
| From: | (Richard Lynch) | Date: | Fri, 09 Jun 2000 23:48:32 +0000 |
| Subject: | Re: [PHP3] Problems with Caching, HTTP_AUTH and PHP_AUTH_USER | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1505@lists.php.net to get a copy of this message | ||
In article <637C00F0303AD311BCCC009027887A7C420C95@tiger.wild.net>,
chris@wild.net ("Boget, Chris") wrote:
> the user who previosuly logged in. It is as if the browser
> caches the previous users authentication information. While
No, the browser only caches the previous page, not the authentication info.
> Since this is almost certainly a caching issue, I thought I'd
> be able to nip the problem in the bud by sending the
> following headers right before I send the 401 authentication
> header:
>
> header("Pragma: no-cache");
> header("Cache-Control: no-cache, must-revalidate");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
There was a *LONG* thread on this issue a few months back.
I forget what solutions were offered, though I think you're on the right track.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)