Access webstorage from outside

Get help using Construct 2

Post » Thu Aug 02, 2012 11:55 pm

I try to set a score to webstorage, I tried both local storage and session storage.

I would like to set the score, redirect the page and then access the session/local variable using javascript.

It should be like SessionStorage.getItem("score")

but not working, anyone?
B
5
Posts: 9
Reputation: 618

Post » Fri Aug 03, 2012 2:48 am

Local Storage is domain-based.

I think it needs to create new plugin which allows cross domain using XAuth.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Fri Aug 03, 2012 11:59 am

If the new page is still on your domain, you can access it through Javascript using session storage with the same key names as used in C2.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,527


Return to How do I....?

Who is online

Users browsing this forum: minigame, NN81, tannerdler, zenox98 and 9 guests