How do I write a data to a cookie?

1
I am writing a mobile phone app which will have anonymous access. So the user only sees their own data, I want to write a number to a cookie, which will be read then used to retrieve the users own data.   How do I create the cookie and write to the cookie? How do I read the cookie when the user access the App?     Nick.
asked
1 answers
3

Hi Nick,

I wrote a little widget a while back for exactly this purpose: https://appstore.home.mendix.com/link/app/52055/Mendix/LocalStorage-Reader-and-Writer

Keep in mind that you should still ensure that your entity access is setup right so that users can only view the data that they should be able to, but that widget is helpful to persistent data on the user's device for use later.

I hope this helps!

Thanks,

Conner

answered