Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript cookies store object

function bake_cookie(name, value) {
  var cookie = [name, '=', JSON.stringify(value), '; domain=.', window.location.host.toString(), '; path=/;'].join('');
  document.cookie = cookie;
}
 
PREVIOUS NEXT
Tagged: #javascript #cookies #store #object
ADD COMMENT
Topic
Name
1+6 =