<html>
<? if ($_SESSION[page1_error] ) { ?>
<font color=red><? echo $_SESSION[page1_error]; $_SESSION[page1_error] = false;?></font>
<? } ?>
<form name=user_form action=processPage1.php>....</form>...</html>
hello sirs,
Please could you help me out with a session problem.
Like, I have 3pages (page1.php, page2.php, page3.php).
I use sessions between page1 and page2.
Page1 - a user fills up a form
Page2 - the user fills up his contact details, and hits a submit button which processes the data to be sent by email.
Page3 - a thank you page.
Now I discovered that after page3, when I go back to page1, the original data is still there.
I googled on the net and what I understand is the session has to be destroyed. My question is: when is most ideal for the session to be destroyed. For ex: the user is filling up page2 and he remembers something to update on page1, etc
Can I destroy the session on page1 immediately after the user hits the submit button on page3?
How?
Or what better way can the above be professionally handled.
regards
Toks
