I'm not sure that you're storing the values into the session variables correctly:
foreach($_POST as $key => $value)
$_SESSION[$key]=$value;
Comparisons in PHP would be >=, not =>.
Also, I don't see you referencing the stored session variables in the form to set the form fields to the previously set values. Try using the session variables without the echo as well.