In my form I check if a session variable isset, and if it is, I populate the field. (I do this to save the user from re-populating the form fields when they are taken to the validation page, then navigate back).
Scenario:
I input incorrect data on PAGE A, and am taken to the validation page. At this point the variables are stored in $_SESSION[].
I decide I no longer want to input the data anymore and navigate to another section of the site. I then decide to navigate back to PAGE A to see my previously incorrect data is still there.
What is the best way to handle this? (Note: The user is logged in using session variables)
Thanks