# Shared Object not working on server

**URL:** https://forum.kirupa.com/t/shared-object-not-working-on-server/185934
**Category:** flash
**Created:** [April 17, 2006, 8:23pm UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934 "2006-04-17T20:23:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)
#### Post date: [April 17, 2006, 8:23pm UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934/1 "2006-04-17T20:23:49Z")

</div>

Greetings,

I have followed the tutorial on Shared Objects with possitive results, and have found answers in the forums, only thing is, as soon as I get my files on the server VERY strange things start happening. (Locally there is no problem)

I have two files in the same folder (on the server and locally)

file1 = “myStore.swf” \<- embedded inside “store.html”

```auto
var user_so:SharedObject = SharedObject.getLocal("savedText", "/");
function pay():Void{
user_so.data.email_so = "bob2@here.com"
}
submitButt.onRelease = pay;
;

```

file2 = “confirmation.swf” \<- embedded inside “confirmation.php”

```auto
var user_so:SharedObject = SharedObject.getLocal("savedText", "/");
box3.text = user_so.data.email_so;

```

Now, in “file1” inside the pay() function I also have a myData.send action. If I click on the futton which sets the email\_so, a window pops up to load the URL that the myData.send points to. If I quickly cose this window before data loads inside of it and go the the “confirmation.php” URL (again, in the same directory as the myStore.html file) then the shared object works no problem.

If, instead, I allow the myData.send page to load, and I walk through the steps I am supposed to (it is an email and payment verification form) and then return to the “confirmation.php” page, I do NOT see the shared object.

email\_so is a uniquely named variable. I don’t know what on earth happens tat somehow the same action (clicking a button) both works and doesn’t work depending on if the myData.send page loads. Any ideas at all? I’ve tried to trouble shoot this thing for a couple of days now and just can’t figure it out.

-i

---

<div class="post-metadata">

### Author: ![bootiteq](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@bootiteq](https://forum.kirupa.com/u/bootiteq)
#### Post date: [April 18, 2006, 11:07am UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934/2 "2006-04-18T11:07:46Z")

</div>

i have never used shared objects myself but this is worth a look.  
[http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn\_14213](http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213)

---

<div class="post-metadata">

### Author: ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)
#### Post date: [April 18, 2006, 3:11pm UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934/3 "2006-04-18T15:11:55Z")

</div>

Bootiteq,

I’m pretty sure tha that does not address the issue (shared object saves data on your computer, it isn’t server specific which is why it is such a mystery to me). Thanks for trying to help though.

I miss Australia. Grew up in Canberra. Cheers.

-i

---

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [April 18, 2006, 3:23pm UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934/4 "2006-04-18T15:23:30Z")

</div>

Are you using SO.flush() to force flash to write data to the file? That may help…?

---

<div class="post-metadata">

### Author: ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)
#### Post date: [April 18, 2006, 4:04pm UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934/5 "2006-04-18T16:04:31Z")

</div>

serkios,

worked. Not sure why, because as far as I can tell it should only be checking for enough space to load the data no?

Well, I wont complain! Thanks for the idea!

-i

---

<div class="post-metadata">

### Author: ![engghost](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@engghost](https://forum.kirupa.com/u/engghost)
#### Post date: [April 19, 2006, 7:18pm UTC](https://forum.kirupa.com/t/shared-object-not-working-on-server/185934/6 "2006-04-19T19:18:02Z")

</div>

hi every body ,  
i’m also concerned in this matter , but i think that Sahred object is like cookies , it only can be saved on ur PC

but i hope flash can do it
