Re:Show HN: cookies.js, making cookies a delight to work wit...
by todd3834 on Thursday September 08, 2016 @10:39AM
(#12453397)
There are situations where cookies make more sense. Local storage gives you less control on the origin where that data can be accessed. Local storage doesn't let you set things such has HttpOnly so that JavaScript can not access the data (this is important to limit the risk of XSS when dealing with session ids). Local storage also doesn't give you as much control over when data should expire.
[ Parent
| on HN ]
Re:Show HN: cookies.js, making cookies a delight to work wit...
by aikah on Thursday September 08, 2016 @10:57AM
(#12453579)
Sure but here we're talking about javascript cookies that aren't htttpOnly or secure. The expiration date and broad compatibility are the only arguments for the use of js cookies.