Java Servlet 2.5 设置 cookie httponly

Servlet 3.0 有 cookie.setHttpOnly(true); 多么人性化,

Servlet 2.5 是没有这个方法的要这个曲线救国:cookie.setPath("; HttpOnly;");

 

thanks to :
http://stackoverflow.com/questions/13147113/setting-an-httponly-cookie-with-javax-servlet-2-5



posted @ 2014-12-08 16:41  buoge  阅读(1529)  评论(0编辑  收藏  举报