0

I'm having a function in JavaScript, which is supposed to writes Cookies, for the duration of 1 year:
function setCookie(cname, cvalue)
{
var d = new Date();
d.setTime(d.getTime() + (365*24*60*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cv...