Jump to content

session variable prob


shishir_mmmec

Recommended Posts

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

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

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

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.