Any way that I can assign window.open(url) into cookies array in javascript?
<p>Does anyone know how can I assign window.open(url) into cookies array in javascript?</p>

<p>Below is the code that I used at the moment, but seem not really working well for me.... </p>

<pre><code>var expiredays = 30
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie="childWindowHandles["+num+"] =" +window.open(url)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
</code></pre>
