It seemed like a simple idea for a snowy day, but now I've lost my way in the forest.
The plan: I have a landing page that will connect to either page 1, 2, or 3.
These pages all flow to page A.
On page A, I decided (big mistake) to say "I hope you enjoyed visiting our page X."
My idea was to create a $_SESSION['page] variable in each of pages 1,2,3 and provide the appropriate value accordingly.
When a user why to page A, the variable would follow and populate the sentence çorrectly.
If they went to page A directly or from the landing page, the variable would be blank bc there is no session value associated.
My first steps seemed to be okay, but then I couldn't clear the session from the landing page.
Is my implementation completely off?