title: how to use document and Request.Cookies
body: <p>I have two variables which needs to be created as a cookie. Can I give them just as without giving any expiration date but just as a key value pair,</p>
  
  <pre><code> document.cookie = "&lt;%= this.CookieDFKey %&gt; = id";
   alert (document.cookie);
   document.cookie = "&lt;%= this.CookieDateCompleteEnd %&gt; = lastRunDate"; 
   window.location = '&lt;%= ResolveUrl("~/GUI/DRNEW.aspx") %&gt;';
  </code></pre>
  
  <p>When I gave the alert statement to check what value  it is having it shows me </p>
  
  <p><a href="https://i.stack.imgur.com/yc602.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yc602.jpg" alt="enter image description here"></a></p>
  
  <p>I need to have both the values id and lastRunDate avaiable in the called page. Can I be just using <code>Request.Cookie[the name of cookie where the value store]</code>?</p>