title: setting cookie through jsp
body: <p>When I am setting the cookie through JSP using the below code:</p>
  
  <pre><code>String username = userinfoid;
  Cookie testcoo  = new Cookie ("username",username);
  </code></pre>
  
  <p>it is setting the cookie with value "zahidansari" (note value is with double quotes). Although value is correct it is bounded inside double quotes.</p>
  
  <p>However when I am setting the cookie using the below code:</p>
  
  <pre><code>Cookie testcoo  = new Cookie ("username",username);
  </code></pre>
  
  <p>It is setting the cookie without the quotes. </p>
  
  <p>I want the cookie value to be without the quotes. Does anybody have any idea why this is happening.</p>