App Connect State Management Support Product Page

In progress

Cookie not set

Reported 29 Sep 2017 09:45:47
1
has this problem
29 Sep 2017 09:45:47 Hans Haverlach posted:
Hi, I just bought the extension and tried it out, running in a problem:
I have a testpage with two buttons, both have a dynamic event onclick that sets a cookie value. Just like in the video.
This is my test code

<body id="testcookie" is="dmx-app">
<dmx-cookie-manager id="cookies1"></dmx-cookie-manager>
<button id="btn1" value="Hans Haverlach" dmx-on:click="cookies1.set('hans',btn1.value,{expires: 1})">Hans</button>[br][br]
<button id="btn2" value="Jeanette Haverlach" dmx-on:click="cookies1.set('jeanette',btn2.value,{expires: 1})">Jeanette</button>[br][br]
</body>


This is the output in browser:

<body id="testcookie" is="dmx-app">
<dmx-cookie-manager id="cookies1"></dmx-cookie-manager>
<button id="btn1" is="dmx-button" value="Hans Haverlach" type="button">Hans</button>[br][br]
<button id="btn2" is="dmx-button" value="Jeanette Haverlach" type="button">Jeanette</button>[br][br]

</body>


Somehow the onClick event is not there and the cookie gets never set.
What is going wrong?

Replies

Replied 29 Sep 2017 10:32:08
29 Sep 2017 10:32:08 Teodor Kuduschiev replied:
Hello Hans,
Please provide a link to your page.
Replied 29 Sep 2017 10:36:37
29 Sep 2017 10:36:37 Hans Haverlach replied:
Replied 29 Sep 2017 10:43:10
29 Sep 2017 10:43:10 Teodor Kuduschiev replied:
From what i see the cookies are set just fine:
Replied 29 Sep 2017 10:47:07
29 Sep 2017 10:47:07 Hans Haverlach replied:
Interesting! I just checked in Google Chrome browser and indeed it works.
BUT it does not in Safari on my Mac. Nothing is produced.

Does this need to be fixed, or do I have to do optional parameters for Safari?
Replied 29 Sep 2017 10:48:02
29 Sep 2017 10:48:02 Teodor Kuduschiev replied:
There will be an update next week, which improves safari and IE issues with the cookies in State Management.
Replied 29 Sep 2017 10:49:16
29 Sep 2017 10:49:16 Hans Haverlach replied:
Great, looking forward to it, because I need it to continue my project.
Thanx!

Reply to this topic