title: SetSecure to true for a Cookie
body: <p>I am trying to create a <code>cookie</code> with <code>SetSecure</code> as <code>true</code>. This is creating problem in save or update methods and systems redirect to error page/ throw 403 error. If I remove <code>SetSecure</code> then it's working fine.</p>
  
  <pre><code>Cookie ck= new Cookie("key",value);
  ck.setsecure(true);
  
  response.addCookie(ck);// HttpResponse
  </code></pre>
  
  <p><strong>Q1)</strong> Is it okay to just set <code>secure flag to true</code>? Or do I have to take care of some more changes in my <code>webapp</code>?</p>
  
  <p><strong>Q2)</strong> I am using <code>http</code> to connect to my <code>webapp</code>. Is this <code>SetSecure flag</code> works with <code>http protocol</code>? Or it has to be <code>Https</code>?</p>
  
  <p>Thanks in advance.</p>