3 ms·
OT but I need a wake-up call here. Upon login I'm sending back a generated UUID tied to the account and saves it as a cookie in the client. What's wrong with th
by Kiro 10y ago
OT but I need a wake-up call here. Upon login I'm sending back a generated UUID tied to the account and saves it as a cookie in the client. What's wrong with this approach?
- russtrotter 10y agoThat approach is generally how many web platforms do their server-side session management. As with anything that is more or less home-grown (vs using that platform session implementation), you'll want to ask yourself: 1) how easy can my UUID be spoofed? 2) can i revoke/invalidate/logout my UUID session
- davewritescode 10y agoThe only problem I can see is that depending on how you're generating the UUID you might be providing UUIDs that are guessable by a 3rd party.