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
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

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
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests