Re:Why use www?
by manigandham on Sunday January 31, 2016 @02:41PM
(#11007667)
They're not the same thing. Cookies add state to HTTP which is very useful, compared to LocalStorage which is really just client-side storage that can also be used to store state but at the higher web application level rather than HTTP.
[ Parent
| on HN ]
If you need state you typically use JS + XHR and can set your own headers. Cookies are just header values with some predefined behaviour wrapped around them.
Re:Why use www?
by manigandham on Sunday January 31, 2016 @06:48PM
(#11008731)
Sure, which again means it's on a web application level rather than working at the HTTP level.
There are lots of uses for cookies without having JS or a full browser available.