JavaScript - Working with cookies


Set-Cookie: NAME=VALUE [;expires=DATE][;path=PATH][;domain=DOMAIN][;secure]

// The date is specified in the format: Weekday, DD-Mon-YY HH:MM:SS GMT

Cookie: NAME1=VALUE1;NAME2=VALUE2; // Browser sending matching cookies to server

document.cookie="..."; // Using JavaScript to manipulate cookies on the client side
var cookieString = document.cookie;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License