How do I read the hosted site's local storage in construct 2

Get help using Construct 2

Post » Wed Oct 19, 2016 7:56 am

OK, I did some diggin in the forum but from what I read, the answer to my problem is either
1. It can't be done.
or
2. Need to echo a variable off of PHP and retrieve it via ajax

I just want to explain that first so that people don't tell me to search the forum, but I think my case is a bit different than others because of one thing: the game is gonna be hosted on the client's site.

so, in the client's site there will be a variable called userid, and this variable is gonna be stored on the site's local storage (in javascript), and the game is going to be hosted on the same site, so the client want this variable to be retrieved by the game (to do stuffs but this time, it's high score post to database).

so my question is: if the game is hosted on the same site, can I retrieve the site's local storage using construct 2's local storage object?

any help is appreciated.
B
45
S
13
G
2
Posts: 173
Reputation: 5,331

Return to How do I....?

Who is online

Users browsing this forum: divsyntax, volumetv and 17 guests

cron