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.

Show HN: Bulletproof sessions – secure, cookieless session handling

2 pointsby tudorconstantinabout 2 months ago
I had this idea for a few years already and now I also managed to implement a proof of concept for it: instead of relying on cookies or tokens to identify a user, have a service worker intercept and sign all the requests to the server (with a private key generated when the service worker is initially installed).<p>The server identifies the user based on the public key corresponding to the signature.<p>BAM! no more cookie sessions, so no more sessions hijacking and session replay attacks.<p>I also wrote a blog post [0] detailing some advantages over the traditional session handling mechanisms, but I feel this enables endless possibilities.<p>Appreciate your thoughts&amp;feedback!<p>[0] <a href="https:&#x2F;&#x2F;programming.tudorconstantin.com&#x2F;2025&#x2F;03&#x2F;bulletproof-sessions-secure-cookieless-session.html" rel="nofollow">https:&#x2F;&#x2F;programming.tudorconstantin.com&#x2F;2025&#x2F;03&#x2F;bulletproof-...</a>

no comments

no comments