Page 1 of 1

Paging backward and forward through Sessions

Posted: Tue Feb 24, 2004 12:48 pm
by polosport6699
Im working on code for the customization of tables and chairs. They have about 5 steps each and each step sets a new session variable. I want them to be able to go through and then if they make a mistake to go back and change a value without redoing the whole form. Currently if I try to go back on a page it gives me this message

Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.


What do I have to do to get it so they can go back and change things without refreshing the page etc... Is this possible? Thanks in advance[/b]

Posted: Tue Feb 24, 2004 4:07 pm
by tsg
Add this under session_start();

Code: Select all

<?php
header("Cache-control: private"); 
?>

Thanks

Posted: Wed Feb 25, 2004 12:15 pm
by polosport6699
Thank you so much, that is exactly what I needed

Posted: Wed Feb 25, 2004 12:28 pm
by tsg
Your welcome.