@Action("sidTest")
    public void sidTest() {
         
        HttpSession session = request.getSession();
        String id=getParameter("sid");
  
        Cookie cookie=new Cookie("JSESSIONID", id);
        cookie.setPath("/");
        
        response.addCookie(cookie);
        
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-06-16
  • 2021-09-11
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2021-04-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-11-08
相关资源
相似解决方案