According to Wikipedia, a cookie is a small piece of information sent from a website and stored in a user’s web browser or hard disk while a user is browsing the website. It is also known as web cookie or browser cookie. The function of the cookie is to remember and retrieve the web browsing history of the user. Therefore, it can be used to personalize the webpage that a user visit. It is a safe and secure method to store data that the user wish to use later.
In this new lesson, you will learn how to use JavaScript to create cookies. As we have learned in previous lessons, JavaScript is a scripting language so you can use any text editor to write JavaScipt’s cookies. Read more by following the link below:
http://javascript-tutor.net/index.php/lesson-27-creating-cookies-in-javascript/