+ 1

Does local storage work across different users

So if I put something in local storage and someone else comes to my code will they see it?

21st Apr 2020, 2:31 AM
Mason Arb
Mason Arb - avatar
8 Réponses
+ 6
No, localStorage is stored on local machine, not shared on network. So other machines would not able to access localStorage directly.
21st Apr 2020, 1:23 PM
Calviղ
Calviղ - avatar
+ 2
Calviղ Let's assume I share usage of a laptop. Then I visit a website x, and that website stores data in localstorage. Then my friend visit same website x, with the same laptop and browser. Will the website be using the same data stored in localstorage that was stored when I visited that site in the first place. Maybe the OP was asking that, although I'm not sure XD (Edited)
21st Apr 2020, 2:31 PM
Ipang
+ 2
Ipang Since it's client side data that localStorage stored, it doesn't used for recognizing user normally. Whenever the website is reopened again, it should fetch the same set of localStorage data.
21st Apr 2020, 4:05 PM
Calviղ
Calviղ - avatar
+ 2
Ipang Programmers still can write code to send localStorage variables to server, the variables is non secured, data like last visited search string, visit counts.
22nd Apr 2020, 2:41 AM
Calviղ
Calviղ - avatar
+ 1
Calviղ Then can we possibly conclude that localstorage is not user specific data (unlike cookies), as per the OP question?
21st Apr 2020, 4:14 PM
Ipang
+ 1
Then how would save stuff cross platform
21st Apr 2020, 7:29 PM
Mason Arb
Mason Arb - avatar
+ 1
Mason Arb for user data that can be accessed from any browsers, we need to use seesion cookie, which is generated from server, not browser javascript.
22nd Apr 2020, 2:44 AM
Calviղ
Calviղ - avatar
0
This is more networking. It depends on how your LAN is set up. The network admin should be the only one with unauthorized access unless there is a specific shared space between all devices on a network. And thats usually manually set up.
21st Apr 2020, 11:36 AM
Slick
Slick - avatar