我需要在请求的对象中启用安全和HTTPON 而且我尝试过一些类似代码的POST请求
postRequest.setHeader(“ Set-Cookie”,“ JSESSIONID =” + SESSION_ID +“; Secure; HttpOnly”);
AND FOR HttpServletRequest对象
request.setAttribute(“ Set-Cookie”,“ JSESSIONID =” + jSessionID +“; Secure; HttpOnly”);