Page 1 of 1

Cookies

Posted: Mon Aug 29, 2016 1:08 pm
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?

Re: Cookies

Posted: Tue Aug 30, 2016 2:19 am
by support
Any error info?

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

Re: Cookies

Posted: Tue Aug 30, 2016 12:07 pm
by joedarock
I've determined that Cookies DO work, but only in the deployed version. Should/can they work in the development version?

Re: Cookies

Posted: Wed Aug 31, 2016 1:55 am
by support
The Builder use cookies too, so we have to clear the user's cookies in debug mode.