Syntax - Tasty Web Development Treats cover image

Hasty Treat - Authentication: LocalStorage vs Cookies vs Sessions vs Tokens

Syntax - Tasty Web Development Treats

00:00

A Session and a Cookie Base Approach

Using on based authentication is popular where server rendered applications. Sessions are state full, so you generally need to maintain a list of session ideas. One huge benefit to using asessions and and cookie base approach is that your your first render can be the logged in view. But again, i guess that could be useful in some particular situations but most oftentimes, if you're trying to just pan or lock some one out, that's not going to be the best idea.

Play episode from 07:36
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app