DEV Community

Session Storage vs Local Storage vs Cookie

Dragoljub Bogićević on February 24, 2020

The main purpose of this post is to give you a brief overview of these features: Session storage stores data only for a session, meani...
Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
bogicevic7 profile image
Dragoljub Bogićević

Well not exactly, the post is about session storage, local storage and cookies... It is like brief overview of the features and differences, the post is not about client-side storage.

Collapse
 
javierpomachagua profile image
Javier Pomachagua

If I'm building a Nuxt Client with a Net Core backend.
Should I use cookies for storaging token?

Collapse
 
bogicevic7 profile image
Dragoljub Bogićević

I do not know, using cookies even with HttpOnly and secure flags are still vulnerable to XSS and CSRF...