title: Javascript Cookie
body: <p>How can i create a cookie by using javascript just for end of the browser session(ie,upto closing of current browser).My script is like follows;</p>
  
  <pre><code>function setCookie(c_name,c_value,c_expiredays) {
      var exdate=new Date();
      exdate.setDate(exdate.getDate()+c_expiredays);
      document.cookie=c_name+ "=" +escape(c_value)+
      ((c_expiredays==null) ? "" : ";expires="+exdate.toGMTString());
  }
  
  setCookie('gs_cookie','firstme',1600000);
  </code></pre>
  
  <p>How much value i need to pass instead of 1600000. Please help....</p>