JS settings, delete, get user cookie information
function GetCookie (name) {Obtaining cookie Information
var cookie_start = document.cookie.indexOf (name);
var cookie_end = document.cookie.indexOf (";", Cookie_start);
return Cookie_start = =-1? ': unescape (document.cookie.substring Cookie_start + name.length + 1, cookie_end > Cookie_start? cookie_end:docum ent.cookie.length)));
}
function Setcookie (cookiename, cookievalue, seconds, path, domain, secure) {//Set cookie information
var expires = new Date ();
Expires.settime (Expires.gettime () + seconds);
Document.cookie = Escape (cookiename) + ' = ' + Escape (cookievalue)
+ (expires?) '; Expires= ' + expires.togmtstring (): ')
+ (path?) '; Path= ' + path: '/'
+ (domain?) '; Domain= ' + domain: ')
+ (secure?) '; Secure ': ');
}
Maybe you will ask how is a function that doesn't delete cookie information? Delete Cookies only set him to expire on OK.