Which one, DOM Storage or cookies?
Cookies are used for storing data. However, they cannot store large amounts of data. DOM Storage variables (localStorage and sessionStorage) are supported in the latest versions of all browsers today. IE8 and above support it, even, which is impressive.
But don't switch completely over to localStorage. Use it for special purposes. And don't use it for important data, because Google Chrome's Developer Tools allow you to edit the variables.
A tip. Maybe useful.
No comments:
Post a Comment
Please keep your comments appropriate.