How do I write a data to a cookie?

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.
1 answers

Hi Nick,

I wrote a little widget a while back for exactly this purpose:

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!