Cache control not working on local server Win/XP environment

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
victor
Forum Commoner
Posts: 65
Joined: Fri Feb 13, 2004 1:36 am

Cache control not working on local server Win/XP environment

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