JAVASCRIPT COOKIES

Following things have been included in this blog,

  1. Why do we need them
  2. How to use/create them
  3. Five Variable fields
  4. What can javascript do with the cookies
  5. Example of how to use them

Why do we need cookies?

Here how do cookies come??

HOW TO USE COOKIES?

Syntax of creating a cookie ??

?? document.cookie = "name=xyz";

5 Variable fields

With each cookie we can have 5 variable path names or domains to a particular website, based on a list of 5 variable fields

Below are the mentioned variable fields

What javascript can do with the cookies

There are various things javascript can do with the cookies. Some of them are:

Let's see some example of how can we create a javascript function in order to check the cookie.