TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

8 pointsby nealrsover 8 years ago
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 comments

mtmailover 8 years ago
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 未加载
ddgfloridaover 8 years ago
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.
tedmistonover 8 years ago
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.
_RPMover 8 years ago
I would implement pre mature optimization if I were you.