This discussion is archived
0 Replies Latest reply: Oct 15, 2012 10:54 PM by 800347 RSS

How to set httponly cookies in J2EE 5

800347 Newbie
Currently Being Moderated
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!



  • Correct Answers - 10 points
  • Helpful Answers - 5 points