...

View Full Version : Transient handling not working



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


//start session
session_start();

//set transient SID argument separator to "&" for XML
ini_set("arg_separator.output","&");

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?

mordred
05-29-2004, 09: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.

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum