Hi Matthias,
Hmm, I should never do things when I’m tired.
I do the following all the time with LC session variables
and they do use the quotes.
put $_SESSION["userid"] into Varuserid
Yet the following works nicely and no array is needed:
var amount1 = 23;
var amount2 = 56;
var total = amou
I doubt that the qoutes were the problem. ;)
Your
put $_cookie[username]
will replace the content of the var username.
In your case, if the value of variable username for example is Peter then
LC would replace $_cookie[username] with $_cookie["Peter"]
If username wasn't used before then LC
Hi Matthias,
I found the problem.
You had: put $_Cookie["username”]
It shouldn’t have the quotes.
put $_Cookie[username]
works fine.
I think I made the same mistake sometime! LOL
Cookies reside in the client’s web-browser which is why
as users were are always clearing them out.
So, Live
Rick,
you are mixing something.
$_session array is stored on the server while sessionstorage is stored on the
clients computer.
I am not sure that there is a direct way to let Livecode Server read
sessionstorage directly from the clients computer, but i might be wrong.
At least PHP is not able
Hi Matthias,
Session Variables are like cookies except they auto-expire at the end of a
browser session
like when you close a tab or window.
In Javascript one would set a session variable this way: