SharedObject is not written on the server, anyone encountered this before?

I’ve been designing a SharedObject-based Cookie system for a while, everything works fine in my Flash authoring tool and my localhost (I used a dummy domain)

But after I committed the swf file to server, the SharedObject stopped to working. Here is the code:

The only difference is that, on the server, the SWF stored on another domain. I’m not sure whether this caused the issue.

Local Code:[INDENT]

swfobject.embedSWF("test.swf?"+Math.random().toString(),
"player1", "100%", "100%", "9.0.0", "expressInstall.swf", {
  guid:"0",
  autoplay:"yes",
  localmode:"yes",
},{allowfullscreen:true,wmode:"opacity",
allowScriptAccess:"always"});

[/INDENT]Remote Code:[INDENT]

var vars = {javascriptid: 'id', width: '400', height: '300',
locksize: 'no'};
var params = {allowfullscreen: 'true', 
allowscriptaccess: 'always'};
swfobject.embedSWF('http://otherdomain/test.swf', 
'id', '400', '300', '9.0.115','expressInstall.swf',
vars, params);

[/INDENT]