Cookies

Post bugs here!
Post Reply
joedarock
Posts: 169
Joined: Thu Nov 19, 2015 8:39 pm

Cookies

Post by joedarock »

I use cookies in my app. They were working fine until I upgraded to CrossUI Ver 1.4; now they don't work. I tried this code from the API documentation, which runs OK in the API documentation's demo 'run' environment, but doesn't work within my app under 1.4:

var o = xui.Cookies;
o.set('a','b',1);
alert(o.get('a'));
o.remove('a');
alert(o.get('a'));

All my cookie code does work in versions of the app that I built under 1.2.


Can you advise?

support
Posts: 356
Joined: Sat Apr 27, 2013 9:22 am

Re: Cookies

Post by support »

Any error info?

Or, to check whether xui.Cookies exists or not?

joedarock
Posts: 169
Joined: Thu Nov 19, 2015 8:39 pm

Re: Cookies

Post by joedarock »

I've determined that Cookies DO work, but only in the deployed version. Should/can they work in the development version?

support
Posts: 356
Joined: Sat Apr 27, 2013 9:22 am

Re: Cookies

Post by support »

The Builder use cookies too, so we have to clear the user's cookies in debug mode.

Post Reply