[英]Do you need client-side script for a server to access local storage?
I want my page to use local storage, for users to store customer names to be retrieved later.我希望我的页面使用本地存储,以便用户存储客户姓名以便以后检索。 I need to reassure users that my site (server) will not access the local storage.
我需要向用户保证我的站点(服务器)不会访问本地存储。
Do I understand this correctly?我理解正确吗? For the server to access local storage, it has to use a client-side script (eg JavaScript) to get at it.
对于服务器访问本地存储,它必须使用客户端脚本(例如 JavaScript)来获取它。 This script would be apparent if the client-side source code was examined (eg using view:source).
如果检查了客户端源代码(例如使用 view:source),这个脚本就会很明显。 So the reassurance would be testable.
因此,这种保证是可以检验的。 Or can the server access local storage without there being anything visible client-side?
或者服务器可以在没有任何可见客户端的情况下访问本地存储吗?
one computer cant access other computer's local storage.一台计算机无法访问其他计算机的本地存储。 Even both computer online sametime.
甚至两台电脑同时在线。 there must be serverside script to transfer data each other.
必须有服务器端脚本才能相互传输数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.