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