View Full Version : Transient handling not working

05-29-2004, 07:46 AM
I'm using very simple session control - all I do is this:

//start session

//set transient SID argument separator to "&" for XML

But when cookies are not available the session doesn't propagate.

If you have a look at http://www.brothercake.com/games/mastermind-test/ in a browser with cookies disabled - the orange text is $_SESSION and the blue text is $_POST. The PHPSESSID does get written to that form, and when you submit it the ID is there in the POST data, but if you submit it again, the ID has changed - it creates a new session and so all the data is lost.

Any ideas what might be going wrong here?

05-29-2004, 08:22 AM
Hm. I can't reproduce your issue with PHP 4.3.6 on Win2k.

Have you made sure you don't actually overwrite the session id somewhere, or change the name of the session accidentally somewhere? What is the value of your php.ini setting "session.use_only_cookies"? Apart from that, I think you have to show us more code of your session handling.

05-30-2004, 11:41 AM
session.use_only_cookies was On - that was it, and now it works :) ta :thumbsup:

05-30-2004, 12:04 PM
You're welcome. :)