jsessionid « Filter « JSP-Servlet Q&A





1. How do I update the cookie JSESSIONID with HttpOnly by working directly on Http Headers?    stackoverflow.com

Here is the big picture I want to append "HttpOnly" to the JSESSIONID Cookie, but I want to do this by hand, meaning:

//create a new cookie
StringBuilder updatedCookie = new StringBuilder("JSESSIONID").append("=")
   ...