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

**URL:** <https://forum.kirupa.com/t/sharedobject-is-not-written-on-the-server-anyone-encountered-this-before/282351>\
**Category:** flash\
**Created:** [February 20, 2009, 3:11pm UTC](https://forum.kirupa.com/t/sharedobject-is-not-written-on-the-server-anyone-encountered-this-before/282351 "2009-02-20T15:11:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awflasher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/awflasher/32/3562_2.png) [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Post date:** [February 20, 2009, 3:11pm UTC](https://forum.kirupa.com/t/sharedobject-is-not-written-on-the-server-anyone-encountered-this-before/282351/1 "2009-02-20T15:11:14Z")

</div>

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]

```auto
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]

```auto
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]
