Page 1 of 1

Cache control not working on local server Win/XP environment

Posted: Mon Sep 06, 2004 11:23 pm
by victor
I'm doing a customer edit profile page, after modifying their profile and submit, upon clicking 'Back' they will be brought to the main menu, when clicking to the same page again, changes should be registered. I've placed the following codes right at the top of my scripts

Code: Select all

<?php
session_start();
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); 
header('Cache-Control: no-store, no-cache, must-revalidate'); 
header('Cache-Control: post-check=0, pre-check=0', FALSE); 
header('Pragma: no-cache'); 
?>
When i check the temp internet folder, nothing has been registered - OK, however when I tried to go back to the same page again, the changes that have been made to the form just doesn't capture. Seems like the data is retrieved from the client side still but not the server, can someone please help.