I'd like to ask why big players like facebook, google still uses cookies if localstorage is much better and secure for same.
Asked
Active
Viewed 808 times
-3
-
1May be because of `Legacy Browsers`.. [__Browser Support__](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage#Browser_compatibility) – Rayon Apr 28 '16 at 08:32
-
2Google and Facebook use both, localstorage and cookies. Maybe they use cookies because it's easier to get them on the server. With localstorage you will need to add it to request and cookies are send automatically. – jcubic Apr 28 '16 at 08:38
-
"if localstorage is much better and secure for same." [citation needed] */me looks at his noscript plugin and thinks wtf???* – PeeHaa Apr 28 '16 at 09:23
-
@PeeHaa It's not duplicate of your mentioned link. Both are technically different. – hmjha Apr 28 '16 at 09:32
-
Considering you don't understand the difference between the two making your question pretty much impossible toanswer I would say the dupe suits you just fine. Also *citation* is till *needed*. – PeeHaa Apr 28 '16 at 09:36
1 Answers
0
They are not the same thing at all: you can use them in a similar way, but they serve different purposes.
Take a look at this thread: Local Storage vs Cookies