Jump to content

$_SESSION variables getting lost when I redirect


sngumo

Recommended Posts

Hi

 

I have this problem with a system I'm making:

 

I am assigning certain variables to the $_SESSION variable on the first file then I redirect the user to another file which obtains the set SESSION data for processing on the second file.

 

The problem is when I test the code on my local machine, it works fine but when I upload the site to the hosting server, some of the data set to the SESSION on the first page DISAPPEARS and therefore the code on the second page doesnt process correctly.

 

What might be causing this problem, I am using the "header" function to redirect the user?

 

Thanks

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.