title: how to secure/ httponly cookies
body: <p>I have configured nginx as Proxy server and my backend is tomcat8.5 on Redhat7. I have configure SSL in nginx. I would like to have cookie in <strong>secure</strong> and <strong>httponly</strong> but my header shows only JSESSIONID in cookie. </p>
  
  <p>my result:-  Cookie:JSESSIONID=D442DD723352EA8354E4D .</p>
  
  <p>i'm seeking of below result 
  <a href="https://i.stack.imgur.com/VWfFO.png" rel="nofollow noreferrer">click on here- pic 1</a></p>
  
  <p>I have follow below solution , but that was not worked for httpOnly.
  <a href="https://geekflare.com/secure-cookie-flag-in-tomcat/" rel="nofollow noreferrer">https://geekflare.com/secure-cookie-flag-in-tomcat/</a></p>