~/talk

Cookies versus tokens: a paradoxical choice

Talkat NG-BE 2017 · 2017-12-07..12-08· [security, angular]
slides:none on file

Compares concrete session patterns (server-state vs client-side JWTs), demonstrates broken code and fixes (shows a decode call that skips JWT signature verification and the correct verify flow), proves how an Angular interceptor token leakage leaks credentials to third parties, and evaluates storage tradeoffs with localStorage vs sessionStorage. Covers CSRF vs CORS/origin checks, cookie flags like SameSite/HttpOnly, session revocation limits, and when simple server sessions beat token-based schemes.

AI-written summary · about

  1. 0:00Intro
  2. 0:35Session management
  3. 1:15Clientside sessions
  4. 3:10Session locality
  5. 5:40Geotokens
  6. 6:50Common mistakes
  7. 9:10Cookies
  8. 11:40Crosssite request forgery
  9. 13:05Crossorigin resource sharing
  10. 14:25Preventing crossorigin sharing
  11. 15:40Cookies are messy
  12. 18:35Summary
  13. 22:05Scenarios
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.