Re:Three things to never build yourself: auth, notifications...
by DougN7 on Friday May 14, 2021 @10:11AM
(#27154526)
The cookie value has to be stored in some sort of map\dictionary that links to the session data. If the cookie value is a random string, you don’t need to store any more data than you would with a hashed cookie value. Or maybe I’m misunderstanding your point?
[ Parent
| on HN ]
Re:Three things to never build yourself: auth, notifications...
by yoyonamite on Friday May 14, 2021 @10:52PM
(#27161875)
ah, okay. I think I misunderstood. I was thinking about the case where the data is stored in the cookie itself (i.e. an encrypted cookie), and you would need a way to verify that the contents weren't altered. If it's storing a session id, then there isn't a reason to also sign it. Sounds like they conflated the two approaches.