View Single Post
Old 07-01-2016, 12:28 AM   #4
Kiara
Registered User
 
Join Date: Jun 2016
Location: USA
Posts: 55
Local storage:
1. Local storage stores the data in the form of key and value
2. The data is stored for longer duration and remains in the browser unless the user deletes it explicitly, it remains even after a computer restart.
3. No way to specify the timeout period as the Cookies have.
4. Good to create an offline application that runs on the client machine (browser).
5. Easy to work with the JavaScript.
6. Local storage data is not sent to the server on every request (HTTP header) as it is purely at the client side.
Cookies :
1. Good for small amount of data
2. Difficult to work with JavaScript
3. All data is transferred to and from server, so bandwidth is consumed on every request
4. Can specify timeout period so that cookies data are removed from browser
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Kiara is offline   Reply With Quote