Local Storage, Session storage, Web storage, web database and cookies in HTML5

前端 未结 5 2186
闹比i
闹比i 2020-12-14 01:22

What is the difference between these concepts, and when should I use one in particular? Does this listing also contain different names for the same general concept?

5条回答
  •  误落风尘
    2020-12-14 01:53

    AFAIC:

    1. Cookies are 4k per cookie, and local storage is 5k per domain.
    2. Cookies existance time limits and sorage is just client-side protocol- and domain-specific bin for data.

提交回复
热议问题