TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Do I need to inform visitors about LocalStorage?

8 点作者 nealrs超过 8 年前
So for the past year or so, I&#x27;ve been noticing all these new &quot;we use cookies&quot; banners. Whether regulatory or trend-driven, it &#x27;s nice to see some transparent about what &amp; why sites are tracking me. But, do these same policies apply to Local Storage? Sure, the data is stored on the client&#x27;s machine, but I could still use that data to inform my app (e.g. sending uuids along with events to google analytics).<p>Is there an expectation that LS is truly private? Should sites be informing users that they will be storing user data in their browser?

4 条评论

mtmail超过 8 年前
In theory is the law applies as well. In practice I&#x27;ve never seen it mentioned on a website.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Directive_on_Privacy_and_Electronic_Communications" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Directive_on_Privacy_and_Elect...</a><p>&quot;The article is technology neutral, not naming any specific technological means which may be used to store data, but applies to any information that a website causes to stored in a user&#x27;s browser. This reflects the EU legislator’s desire to leave the regime of the directive open to future technological developments.&quot;
评论 #12514405 未加载
ddgflorida超过 8 年前
My sites use local storage and I inform the user - consider the possibility someone is using a public computer and you&#x27;ve stored locally what they though was private.
tedmiston超过 8 年前
I feel like it depends on the audience of your product. In a general consumer product it might actually be more confusing given your user might have no idea how &quot;any of that stuff&quot; works.<p>I don&#x27;t think I&#x27;ve ever encountered an app that&#x27;s let me know in advance about its use of localStorage.
_RPM超过 8 年前
I would implement pre mature optimization if I were you.