setCookie

function setCookie(c_name,value,expiredays)
{
	JSLogger.log("cookies = "+document.cookie);
	var exdate=new Date()
	exdate.setDate(exdate.getDate()+expiredays)
	document.cookie=c_name+ "=" +escape(value)+
	((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
 

你可能感兴趣的:(cookie)