Sessions: Page 1 vs Page 2
I am having a hard time with sessions. I bet it's because I don't REALLY understand the intricacies of PHP sessions, but I'm trying to hack my way through.
I've got this simple 2 page system, an add to cart page (1) and a cart page (2).
- On page 1, submit a form and set $_SESSION['example']; through a function.
- On page 1, successfully echo $_SESSION['example'];
- On page 2, it fails to echo $_SESSION['example'];
Isn't the point of a session to set a variable that can be accessed on any page of the site within a time frame?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread