Paging backward and forward through Sessions

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
polosport6699
Forum Commoner
Posts: 35
Joined: Wed Jun 11, 2003 3:19 pm

Paging backward and forward through Sessions

Post 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]
tsg
Forum Contributor
Posts: 142
Joined: Sun Jan 12, 2003 9:22 pm
Location: SE, Alabama
Contact:

Post by tsg »

Add this under session_start();

Code: Select all

<?php
header("Cache-control: private"); 
?>
polosport6699
Forum Commoner
Posts: 35
Joined: Wed Jun 11, 2003 3:19 pm

Thanks

Post by polosport6699 »

Thank you so much, that is exactly what I needed
tsg
Forum Contributor
Posts: 142
Joined: Sun Jan 12, 2003 9:22 pm
Location: SE, Alabama
Contact:

Post by tsg »

Your welcome.
Post Reply