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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.