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
105
S
29
G
28
Posts: 3,102
Reputation: 27,380

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
366
S
217
G
82
Posts: 23,260
Reputation: 183,610


Return to How do I....?

Who is online

Users browsing this forum: Aphelleon, Noga and 0 guests