shishir_mmmec Posted February 18, 2008 Share Posted February 18, 2008 Hi friends, I'm passing a session variable from html page to php page and then php page to another php page. my problem is that session variable is being accessed by second page(from html to php page) but not by third page. I checked the script it is working fine on other system and session variable is being accessed by all the subsequent pages. I think there is a cofiguration problem in php.ini kindly assist me to solve the issue Link to comment https://forums.phpfreaks.com/topic/91675-session-variable-prob/ Share on other sites More sharing options...
trq Posted February 18, 2008 Share Posted February 18, 2008 Have you a call to session_start() in all pages that make use of the $_SESSION array? Link to comment https://forums.phpfreaks.com/topic/91675-session-variable-prob/#findComment-469513 Share on other sites More sharing options...
shishir_mmmec Posted February 19, 2008 Author Share Posted February 19, 2008 ya i used session_start() at all the pages, one more thing my pages are working fine when I'm running them on other linux server Link to comment https://forums.phpfreaks.com/topic/91675-session-variable-prob/#findComment-470321 Share on other sites More sharing options...
uniflare Posted February 19, 2008 Share Posted February 19, 2008 seems like your pages aren't getting the PHPSESSID, are you using cookies? or GET queries? ie, each link to the next page must have $querystring = "?PHPSESSID=".SID; if your not using cookies. if you are using cookie search your php.ini file for [session] then below this check that the configurations match the way your script is trying to use them. (ie if using cookies: session.use_cookies must be 1 etc. also if your not using cookies make sure session.name matches the string your querying to your other files. hope this helps, Link to comment https://forums.phpfreaks.com/topic/91675-session-variable-prob/#findComment-470328 Share on other sites More sharing options...
PFMaBiSmAd Posted February 19, 2008 Share Posted February 19, 2008 It is likely that your page is outputting content to the browser. It works on one server, where output buffering is turned on in php.ini, but it does not work on the other server where output buffering is turned off in php.ini. Check your settings for output_buffering on the two servers. Link to comment https://forums.phpfreaks.com/topic/91675-session-variable-prob/#findComment-470330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.