javascript - Cookies: why aren't they big enough? what is there to store that a cookie can't contain? -
I'm inexperienced and do not understand why you need more than the size of the cookie, local storage will be 5 MB Keeps around, someone can probably be put in a local storage price which is bigger? I really want to understand, can someone tell me what people store what is more than a few words or big links?
Oh, this is very simple if you design an arbitrary size application and for some reason Decide that you want to store the application's status in the client, so 4kb is not too high. Example:
- Example:
- A tree-sized menu and you want to store a brief / extended state of each menu item
- One Search form where you want the default value for all your selections
- Too many other things
This is the reason that in the end, you store these things in a cookie Do not (except for security reasons)
Comments
Post a Comment