First of all, a plugin that references JQ jquery.cookie.js
1<span style= "font-size:14px" >$.cookie (' The_cookie ', ' the_value ');//New Cookie
2 $.cookie (' The_cookie ',NULL);//Delete a cookie</span>
<span style= "font-size:14px" >$.cookie (' The_cookie ');//Read Cookie value
$.cookie (' The_cookie ', ' the_value ');//set the value of a cookie
$.cookie (' The_cookie ', ' The_value ', {expires:7, path: '/', Domain: ' jquery.com ', secure:true});//Create a new cookie including the validity path domain name </span>
Browser cookies typically have the following four customizable properties:
1. Expires
expiration time, which is the time of the cookie's death.
If a cookie is not expires, the cookie disappears after the browser is closed.
cookies can survive to expires time and expire automatically and disappear.
2. Path
3. Domain
4. Secure
JQuery Action Cookie