Page 1 of 1

cache problem in IE

Posted: Wed Oct 01, 2008 4:33 am
by kishanprasad
HI

i have added the following code in my page as
header("Cache-Control: max-age=3600");

so its populating the data even if i click the back button however the sessions are also caching in that page so if i logged in its not showing me the status that i was logged in where as in other pages its showing correctly that i was logged in "IT WAS ONLY HAPPENING IN IE"

Please help.


Thanks in advance

Re: cache problem in IE

Posted: Wed Oct 01, 2008 6:15 am
by kaisellgren

Code: Select all

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: -1");
I'm not sure if they were typed like that, I think the Expires might be wrong, give them a Google search and try those.