Internet Explorer Caching - Solved
- From: cwemagazines@xxxxxxxxxxx (Charlene)
- Date: Thu, 30 Aug 2007 09:11:44 -0500
Charlene wrote:
I've been having problems with Internet Explorer caching php programs. I'm using the following code:I am using sessions, and it appears to work differently in PHP5 than PHP4 (not fully tested as to verification of that statement). So I needed to add a line of code before the session_start function:
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma", "no-cache");
header("Expires", "-1");
And it used to work, but now, according to Windows Explorer its giving it 3 hours to expire.
Charlene
session_cache_expire(0);
session_start();
Charlene
.
- References:
- Internet Explorer Caching
- From: Charlene
- Internet Explorer Caching
- Prev by Date: Re: [PHP] Pragmatically changing a "Record Number"
- Next by Date: Reload page after form submit
- Previous by thread: Re: [PHP] Internet Explorer Caching
- Next by thread: Pragmatically changing a "Record Number"
- Index(es):