+ 5

Can local.Storage be accesed across many devices?

(javascript) Lets say I were to make a website that included this snippet of code: local.Storage.setItem("myNumber", 5) And on another page of the same website: local.Storage.getItem("myNumber") But what if I viewed the first page on a phone, and the second page on a computer or a different phone. Would I still be able to get myNumber?

11th Oct 2018, 5:37 PM
Elijah D
Elijah D - avatar
2 ответов
+ 6
Thanks Calviղ
13th Oct 2018, 10:28 AM
Elijah D
Elijah D - avatar
+ 2
No, you cant. Local storage store data on local device only. You need send your data to remote server using AJAX, in order other devices can access the same data.
12th Oct 2018, 12:18 AM
Calviղ
Calviղ - avatar