Pass Javascript Session Cookie to LiveCode Variable?
matthias_livecode_150811 at m-r-d.de
matthias_livecode_150811 at m-r-d.de
Wed Nov 4 16:35:34 EST 2020
Hi Rick,
there are two files:
writecookies.html
readcookies.lc
See the code of each here
https://livecode.dermattes.de/javascript/showcode.lc
-
Matthias Rebbe
Life Is Too Short For Boring Code
> Am 04.11.2020 um 22:10 schrieb Rick Harrison via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi Matthias,
>
> I just tried your code and it didn’t go across from one format file to the next.
>
> I got: username = “username”
>
> What’s wrong?
>
> If you can give me your full code for both mini format files I will try it
> and we can see the results exactly.
>
> Thanks for helping!
>
> Rick
>
>> On Nov 4, 2020, at 2:04 PM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> <script type="text/javascript">
>> document.cookie = "username=Rick";
>> </script>
>>
>> Then in LC Server i used the array $_cookie to read the content of the cookie
>>
>> Doing a
>> put $_Cookie["username"]
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list