Cookies were originally designed to enable a server to save information on the client’s disk. When the client contacted that same host at a later time, the previously saved cookie would be sent back to the server
Cookies are therefore useful if a browser connection is interrupted and you want to pick up where you left off. They are also useful in the event the server crashes and later wants to pick up where it left off. Cookies are now available for general use in JavaScript.
Leave a Reply
You must be logged in to post a comment.