thefollower Posted October 17, 2007 Share Posted October 17, 2007 I have a problem with my session i think its just simple syntax mistake but not used them very much.. i have session_start() as global include so i have that sorted.. on one page i create the session which is here: $_SESSION['MessageOneID'] = $MessageIDOne; $_SESSION['MessageIDTwo'] = $MessageIDTwo; $_SESSION['MessageIDThree'] = $MessageIDThree; When i echo the code above it is correctly working. On the next page i have: $MessageIDOne = $_SESSION['MessageOneID']; $MessageIDTwo = $_SESSION['MessageIDTwo']; $MessageIDThree = $_SESSION['MessageIDThree']; But when i echo the code above it comes out blank^. Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/ Share on other sites More sharing options...
BlueSkyIS Posted October 17, 2007 Share Posted October 17, 2007 i have session_start() as global include so i have that sorted.. maybe not so sorted? Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/#findComment-371606 Share on other sites More sharing options...
thefollower Posted October 17, 2007 Author Share Posted October 17, 2007 Ok to be on the safe side i typed session_start(); on the top of both pages and still similar result. <br /> <b>Notice</b>: A session had already been started - ignoring session_start() in <b>C:\xampp\htdocs\include.php</b> on line <b>2</b><br /> Was deffinatly working then. Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/#findComment-371608 Share on other sites More sharing options...
mattal999 Posted October 17, 2007 Share Posted October 17, 2007 do you have session_start(); on both pages? Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/#findComment-371613 Share on other sites More sharing options...
thefollower Posted October 17, 2007 Author Share Posted October 17, 2007 Yup. Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/#findComment-371617 Share on other sites More sharing options...
mattal999 Posted October 17, 2007 Share Posted October 17, 2007 right, can you post the FULL code so we can fully analyse the script...? Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/#findComment-371647 Share on other sites More sharing options...
thefollower Posted October 17, 2007 Author Share Posted October 17, 2007 I got it working in the end.. had an if statement problem. And for some reason that was affecting it =/ Quote Link to comment https://forums.phpfreaks.com/topic/73660-solved-session/#findComment-371667 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.