Should I use localStorage instead of cookies for web app targeted at mobile browsers?

Cookies and localStorage have two different uses, mainly cookies are for reading by the server side, and localStorage is for reading by the client slide If your client side needs this data, then yes, use localStorage(you'll save bandwidth by not sending the cookies for every HTTP requestin the headers). However if you are not, then just stick to using cookies. Making additional HTTP requests(via ajax) to send the server the cookies is a little overkill if all you are doing is having the server side access this data.

Cookies and localStorage have two different uses, mainly cookies are for reading by the server side, and localStorage is for reading by the client slide. If your client side needs this data, then yes, use localStorage(you'll save bandwidth by not sending the cookies for every HTTP requestin the headers). However if you are not, then just stick to using cookies.

Making additional HTTP requests(via ajax) to send the server the cookies is a little overkill if all you are doing is having the server side access this data.

Thank you! That makes sense. The part I wasn't getting is that local storage is for data actually used by the client.

– robynover Mar 16 at 18:55.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions