madsobelcph Posted March 21, 2012 Share Posted March 21, 2012 Hi guys. Im making a script that stores different contents in sessions. And everything seems to be working fine. I previously had some problems with it, but managed to fix them. Now somehow a new problem have accrued for me. I did not do anything to it since it last worked. So i am a little confused. It keeps telling me that the session does not have any content. I think that the problem is within these two files here: http://pastebin.com/T6sfzjWn and http://pastebin.com/BUAuFp6t It keeps giving me the error on line 24 from the second file. Can someone please help me and say what i am doing wrong? Link to comment https://forums.phpfreaks.com/topic/259407-problem-with-a-session/ Share on other sites More sharing options...
dragon_sa Posted March 21, 2012 Share Posted March 21, 2012 The problem is the spaces in your msg variable change line 24 on the second page from header('location:index.php?msg=Session lost due to inactivity please try again'); to header('location: index.php?msg=Session lost due to inactivity please try again'); Link to comment https://forums.phpfreaks.com/topic/259407-problem-with-a-session/#findComment-1329789 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.