Thread: PHP Script Auth
View Single Post
  #15 (permalink)  
Old 01-05-2011, 06:47 PM
catzillaz catzillaz is offline
Starter Member
 
Posts: 2
Default

this is a javascript is use to set the cookie

function setCookie(name, value, expires, path, domain, secure) {
document.cookie= name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}

setCookie("ZM_TEST","true");
Reply With Quote