Hi,
So my tiny demo of some calculations based on 3 numbers that the user would want to refer back to. Not worth setting up a server side service for. So what are the options for client side storage:
- cookies
- local cached storage
I did a search in the manual and forum for cookies & local storage.
What would be sensible and howto?
Cheers,
JAC.
Have a look at unit WEBLib.Cookies
var
cookies: TCookies;
v: string;
begin
cookies := TCookies.Create;
cookies.Add(Name, Value);
v := cookies.Find(Name).Value;
cookies.Free;
end;
But you can also use LocalStorage, see unit WEBLib.Storage
Thanks Bruno - if I ask a question and the answer is obviously covered in the docs - please tell me to RT*M :-). I can not make my rower example have a level of persistence.
JAC.