Steve
Steve

Reputation: 55565

HTML5 and Cookies

With the emergence of HTML 5 and various client side storage technologies, do you see any useful need for cookies? Assume there isn't a requirement to support older browser.

Upvotes: 1

Views: 408

Answers (3)

Kevin Ji
Kevin Ji

Reputation: 10489

Diodeus is right on—if it ain't broke, why fix it? Cookies are very well supported with many browsers, including older ones, so using cookies would be a more compatible idea than using HTML5 client-side options, as many browsers do not fully support HTML5, and most of the older ones (IE8 and before) likely never will.

Although sessions are a good idea for client-side, cookies are useful for a "remember this user" capability that sessions lack, as sessions disappear after the user closes the window.

Upvotes: 1

JamesEggers
JamesEggers

Reputation: 12935

Cookies will still be around as an option just like Session is still an option for server-side. In terms of Html5 client side storage options, it's one of the more volatile parts of the specification still. Many/most browsers are support Html5 to some degree; however, how they are implementing the storage isn't consistent yet since it's changed in the spec a couple times.

To paraphrase Diodeus's answer... Cookies aren't broke so no need to fix or replace them. Html5 storage is just another option.

Upvotes: 0

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114367

Login validation will still use them. Don't fix what's not broken.

Upvotes: 3

Related Questions