If you're like me you always need to lookup the difference between local storage, session storage and cookies. Stores data with no expiry date Cleared only via JavaScript or clearing browser cache Storage limit is the largest of the 3 as b ig as 5MB Not supported by older browsers IE7 or lower Works on same-origin policy. So, data stored will only be available on the same origin. Stores data only for the duration of the session, when the user closes their browser the data is lost Top-level browsing context, therefore it's unique to each browser tab Storage limit is larger than cookies at 5MB Not supported by older browsers IE7 or lower Stores data that can be transferred to the server via headers LocalStorage and SessionStorage can only be accessed on client-side Expiry is set on creation of the cookie Storage limit is smallest at 4kb Cookies can be made secure making client side unable to read the contents.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners