sngumo Posted March 31, 2009 Share Posted March 31, 2009 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 Link to comment https://forums.phpfreaks.com/topic/151929-_session-variables-getting-lost-when-i-redirect/ Share on other sites More sharing options...
lonewolf217 Posted March 31, 2009 Share Posted March 31, 2009 code for the two pages would help. are you putting session_start() at the top of the second page ? Link to comment https://forums.phpfreaks.com/topic/151929-_session-variables-getting-lost-when-i-redirect/#findComment-797805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.