sécuriser le cookie en javascript

document.cookie = "tagname = test;secure";
Undefined