Jump to content

Problem with a session


madsobelcph

Recommended Posts

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

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');

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.