title: Why document.cookie is not working
body: <pre><code>  var curCookie = name + "=" + value +
      "; expires=" + ATS_getExpire()  +
      "; path=" + path  +
      "; domain=" + domain  ;     
  document.cookie = curCookie;
  alert("Your Cookie : " + document.cookie);
  </code></pre>
  
  <p>When i use above code the alert message coming as empty. Why document.cookie is coming as empty.
  Please anybody answer.</p>