- Cookies
are small text files that websites place in a browser for tracking or
login purposes. Meanwhile,
localStorage
andsessionStorage
are new objects, both of which are storage specifications but vary in scope and duration. Of the two,localStorage
is permanent and website-specific whereassessionStorage
only lasts as long as the duration of the longest open tab.
No comments:
Post a Comment