Hi David,
I have two separate projects, in my first project i have local storage called "localstorage1" and In my second project, I have a local storage called "localstorage1"
I have two questions:
1) in first project i have 2buttons:
cod for button1(click):
cod for button2(click):
I run my project for the first time and click on the button2 I see: Input1.Value=""
After that i click on the button1 I see: Input1.Value=MyData
It's true, now i delete compiled and history files and run the project again, click on the button2: I see: Input1.Value=MyData
i tested it for several times, for the first time it's true after that even if i delete compiled and history file it's return last data! why?
2)in second project i have local Storage with the same name in the first project
when i want use this, it's return data of first project! Even I will completely delete all compiled and history files, i think local storage with a similar name in different project, it's still shared. How can I fix this problem?
thanks,
Hello Ava,
The local storage, if I am not wrong, it's used based in the app's origin. That is, certainly, if we have two apps in the same domain, in fact we are using the same local storage for both apps. It's not a limitation of AB, but the way in which the local storage work.
Clean the cache nor the compilation files have no effect, because the local storage persists even between different user's sessions. The only solution, if we want two apps working (or two app's instances) in the same origin, it's to use different keys in the app's local storage.
Thanks for your good description.
Hello Ava,
You're welcome. Additionally, may we can say that, commonly, the local storage is not a problem. That is, suposing we have two apps running in Android, for example, that apps do not share their local storage at all. Only if we are talking about web apps, and, if these run in the same domain, then yes, the local storage is shared, then we may must take care about that.
Hello David,
Yes, that's right, Also, Sometimes it is necessary to use a one local storage in two programs, this is a good solution.
Tanks and have a good time,
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.