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.

Everything you need to know about Web Storage

14 pointsby softvarover 7 years ago

2 comments

kaishiroover 7 years ago
This is a nice little resource. One positive about cookies that may be missing (but is admittedly a bit of an edge case) is that they're your only option for storing auth/bearer tokens across subdomains if that's a use case you need to support (e.g. a dashboard that stays auth'd across language specific subdomains - de.example.com, es.example.com, etc). As far as I know, being able to store the token against the apex .example.com is something you can really only do with cookies (when it comes to default web storage options).
评论 #15570409 未加载
fbcpckover 7 years ago
The list should include IndexedDB. It’s not part of Web Storage API but it’s still a “Web storage”.
评论 #15561722 未加载