|
|
|
|
|
by systemvoltage
1918 days ago
|
|
Thank you. According to a quick search [1], """
Cookies and local storage serve different purposes. Cookies are primarily for reading server-side, local storage can only be read by the client-side. So the question is, in your app, who needs this data — the client or the server? If it's your client (your JavaScript), then by all means switch. You're wasting bandwidth by sending all the data in each HTTP header. If it's your server, local storage isn't so useful because you'd have to forward the data along somehow (with Ajax or hidden form fields or something). This might be okay if the server only needs a small subset of the total data for each request.
""" So I guess server-side no-JS applications are going to be caught in this crossfire? [1] https://stackoverflow.com/questions/3220660/local-storage-vs... |
|