JavaScript Are Cookies Becoming Obsolete? Cookies vs. Browser Data Stores

I've been playing around with HTML5 and Javascript a lot lately and have been really impressed with the functionality of LocalStorage as well as SessionStorage. It got me to thinking - with the advent of these elements, is there really any discernible advantage to cookies anymore?

I am able to create both persistent as well as session dependent data (both lightweight as well as unhealthily robust objects) with these two data stores. What benefits, if any, do cookies provide over these? Is this the end of the road for our favorite web "treat"?

Answer:1

I've created a 3D cube, that rotates clockwise and anti-clockwise on the Y-axis when the left and right keys are pressed, and then rotates on the X-axis when the up key is pressed. My issue is, that ...

I've created a 3D cube, that rotates clockwise and anti-clockwise on the Y-axis when the left and right keys are pressed, and then rotates on the X-axis when the up key is pressed. My issue is, that ...

i was curious if it's possible to inject an value into a directives' close scope. I could't find anything related in the angularjs documentation so I tried something. Does anybody know if there is an ...

i was curious if it's possible to inject an value into a directives' close scope. I could't find anything related in the angularjs documentation so I tried something. Does anybody know if there is an ...

I'm following the current tutorial and for some reason when ever I click on the Sign in with Google button nothing seems to happen and I'm not entirely sure why. Here is the code: <html> <...

I'm following the current tutorial and for some reason when ever I click on the Sign in with Google button nothing seems to happen and I'm not entirely sure why. Here is the code: <html> <...

I have been working on nvd3 , in d3.js to make the ticks look good their is a nice() provided for ex. var yScale = d3.scale.linear() .domain([0, d3.max(dataset, function(d) { return d[1]; ...

I have been working on nvd3 , in d3.js to make the ticks look good their is a nice() provided for ex. var yScale = d3.scale.linear() .domain([0, d3.max(dataset, function(d) { return d[1]; ...