Setting and Getting Cookies

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

Setting and Getting Cookies

Post 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?
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Setting and Getting Cookies

Post 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
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Setting and Getting Cookies

Post 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
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

Re: Setting and Getting Cookies

Post 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.
Post Reply