note 13543 added to function.header.php
| From: | ggoubert at dbarc dot com | Date: | Thu, 21 Jun 2001 09:00:22 +0000 |
| Subject: | note 13543 added to function.header.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14513@lists.php.net to get a copy of this message | ||
Hi there... Cache problems AGAIN :)
Adding HTTP headers avoid pages to be proxy-cached, ok, it works fine. But how can you prevent IE
from caching a page accessible by the BACK button ??
Those headers :
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, no-store, must-revalidate");
header ("Pragma: no-cache");
avoid proxy cache but not IE local cache. I have a web site with a private section requiring a
login/password. When i disconnect from this section, i would like the pages i just went througth TO
BE UNAUTHORIZED by any person on this available browser. But, after i disconnect, if i press the
BACK button, the private page appears (NB: i check authorized acces with php code at the beginning
of every private page...)
Any solution ? my IE version (french) 5.0 on W2K SP2.
Gregory GOUBERT
ggoubert@dbarc.com
http://www.php.net/manual/en/function.header.php