Browser Storage (Local/Session/IndexedDB)

Cookies are covered in Cookies Attributes.

Local Storage

Display local storage

You usually cannot read local storage from other domains, unless some tricks involving iframes are used.

<html>
    <head></head>
    <body>
        <h1>Test local storage</h1>
        <p>
            <script>
                for (var i = 0; i < localStorage.length; i++){
                    document.write(localStorage.key(i) + ":" + localStorage.getItem(localStorage.key(i)));
                }
                console.log(localStorage);
            </script>
        </p>
    </body>
</html>