It is also used to store session and persistent data, but the data is not sent to the server by default, and it cannot be retrieved using basic HTTP methods, and so has some security advantages over cookies.</p> How we use cookies and local storage <p>We may use cookies and local storage for the following purposes:</p> <ul> <li>