Thanks for your suggestion. Here is what I tried.
On form 1, I have this "reset" button:
<input type = 'submit' name = 'reset' value = 'Clear Form'>
On form 2, I have this code at the top of the page:
session_start();
if (isset ($POST['reset']))
{
unset($SESSION['svMyVar']); // clear the session var
header("Location: first_form.php"); // send the user back to form 1
}
However, upon returning to form 1, the session var still holds the original value! I even tried throwing in the kitchen sink by putting the following inside the curly braces (before the redirection):
session_unregister($SESSION['svMyVar']);
$SESSION['svMyVar'] = ' ';
session_destroy();
But the session value refuses to be cleared of any value! I have also made sure that register_globals = off in the php.ini file.
The interesting thing is, if I hard code this line on form 1 :
unset($_SESSION['svMyVar']);
then the variable is finally cleared. But that won't help me here, because this will clear the variable every time the form is loaded (I just wanted to see if it would work).
I'm out of clues on this one.