cache problem in IE

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
kishanprasad
Forum Newbie
Posts: 16
Joined: Mon Feb 25, 2008 5:20 pm

cache problem in IE

Post 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
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: cache problem in IE

Post 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.
Post Reply