0 Replies Latest reply: Oct 16, 2012 12:54 AM by 800347 RSS

    How to set httponly cookies in J2EE 5

    800347
      Hi folks,

      I ma using Tomcat 6 which implements Servlet API 2.5 (part of the J2EE 5). I know I could set the usehttponly="true" in the context.xml to turn on all cookies to httponly. However, if I only need to set certain cookies to be httponly, how to do it in J2EE 5? I do not find Cookie.setHttponly() method in J2EE 5.

      Thanks in advance!

      Billy