How to configure JBoss 4.0.* to make session cookie HttpOnly and secure?
问题 i tried < Context cookies="true" crossContext="true"> < SessionCookie secure="true" httpOnly="true" /> in context.xml but it is not recognising in jboss4.0 and i tried in java program String sessionid = req.getSession().getId(); resp.setHeader("SET-COOKIE", "JSESSIONID=" + sessionid + ";Path="+req.getContextPath()+"; Secure; Domain="+req.getServerName()+"; HttpOnly"); for 2nd request it not allowing to get session validation object for session so it is showing session expired page and i tried