I am trying to work my way around this. I have this forms page, and it has 3 pages. I store data entered in forms in $_SESSION. I have session_start() at the beginning of the page, and session_destroy() at the last page.
But say the user hits HOME page or goes to another link in the middle of filling out the form… like on page 2. And then goes back… the session data will still be there from last time. But when I do a session_destroy() at the end of each page, it erases the session data so i can’t continue.
Is there a check to do to see if user exists the page in the middle so I can end the session? How should I do this?
-Pizzaman