Page 1 of 1
Setting and Getting Cookies
Posted: Tue Jul 25, 2017 3:54 am
by caseywhite
Is there a native way in VL Web to set and get cookies or is this something I have to write a custom widget to do?
Re: Setting and Getting Cookies
Posted: Tue Jul 25, 2017 5:34 am
by jyoung
I don't think you can get to cookies directly but you can use Session and LocalStorage.
http://docs.lansa.com/14/en/lansa017/co ... Eng01_0295
Re: Setting and Getting Cookies
Posted: Tue Jul 25, 2017 10:28 am
by Stewart Marshall
Hi Casey
Is there specific cookie functionality that you require?
As Joe said, LocalStorage (
http://docs.lansa.com/14/en/lansa016/PR ... torage.htm) is now the recommended technique for storing user data on the client.
Regards
Re: Setting and Getting Cookies
Posted: Wed Jul 26, 2017 1:16 am
by caseywhite
Thanks Joe and Stewart. We are replacing a WAM site that uses cookies to store a flag that a user has done something from that specific browser. It sounds like it is recommended to use local storage then, is that correct? If so, that is the solution I will pursue.