Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@LuxARTS you're not using the cookies as a database (especially because they can't be queried)
database is server side permament (except if you make a sysadmin mad) data storage, cookies are to be used for session id, temporary things
local storage is to be used for things like having offline stored entries for an app that should work offline too and then sync up to online if there's something added. -
Also because session tokens should be a HTTP cookie only. It's simply more secure, otherwise it's one XSS and you're done.
Related Rants
Why people use cookies when you can use local storage and session storage?
rant
cookies
localstorage
js
question
webdev