tomkure Posted February 6, 2010 Share Posted February 6, 2010 Hi, Never use sessions to stores values, but don't looks difficult, anyway.... Need to store which page I am comming from as a number On page 1 session_start(); $pageID=4; $_session['var99'] = $pageID ; echo $_session['var99']; ***Give value 4*** On page 2 session_start(); echo $_session['var99']; *** Gives me nothing *** if ($_session["var99"] <> '' ){ $back = $_session["var99"]; } Is there something wrong in my code Kind Regards Tom Quote Link to comment https://forums.phpfreaks.com/topic/191128-sessions-problem-plz-help/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 6, 2010 Share Posted February 6, 2010 $_session is just the name of an array variable on the current page. $_SESSION is the name of variables that are part of a session. In programming, just about everything has significance because computers only do exactly what their programs tell them to do. Quote Link to comment https://forums.phpfreaks.com/topic/191128-sessions-problem-plz-help/#findComment-1007792 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.