Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 04-29-2016, 12:20 AM   #1
krify
Registered User
 
Join Date: Feb 2016
Posts: 83
[B]Cookies[/B

Pros:
Legacy support (it's been around forever)
Persistent data
Expiration dates

Cons

Each domain stores all its cookies in a single string, which can make parsing data difficult
Data is unencrypted, which becomes an issue because...... though small in size, cookies are sent with every HTTP request
Limited size (4KB)
SQL injection can be performed from a cookie

Local storage

Pros

Support by most modern browsers
Persistent data that is...... stored directly in the browser
Same-origin rules apply to local storage data
Is not sent with every HTTP request
~5MB storage per domain (that's 5120KB)

Cons

Not supported by anything before:
IE 8
Firefox 3.5
Safari 4
Chrome 4
Opera 10.5
iOS 2.0
Android 2.0
__________________

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

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:36 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.