Browser Storages
There are three storages, which can be accessed easily via the Browser API:
Cookies | Local Storage | Session Storage | |
---|---|---|---|
Capacity | 4KB | 5MB | 5MB |
Available At | HTML4/HTML5 | HTML5 | HTML5 |
Accessibility | Any window | Any window | Any window |
Expiration | Manually set | Never | On tab close |
Browser Support | Very high | Very high | Very high |
Supported Data Types | String only | String only | String only |
Auto Expiry | Yes | No | Yes |
Storage Location | Browser and Server | Browser | Browser |
Sent with Requests | Yes | No | No |
Editable and Blockable | Yes | Yes | Yes |
Security | More secure | Less secure | Less secure |
SSL Support | Yes | No | No |
Server Side Accessibility | Yes | No | No |