December 4th, 2012, 02:45 PM
Join Date: Dec 2012
Time spent in forums: 19 m 57 sec
Reputation Power: 0
[SOLVED] I am failing at sessions please help.
I want to pass along some data from one page to the next, without the user seeing it(so without GET).
I decided to use sessions for it, if there is a better solution I'd be glad to hear about it.
The problem is that the data I add to the session on the first page, is not available on the second.
Here is a minimal working example:
$_SESSION['test'] = "data";
<html><body><?php echo $_SESSION['test']; ?></body></html>
Probably I am understanding the whole sessions thing all wrong.
So, what do I do wrong and/or how should I do it otherwise?
Thanks in advance!
Last edited by Oebele : December 4th, 2012 at 02:57 PM.
Reason: Problem solved