@Action("sidTest") public void sidTest() { HttpSession session = request.getSession(); String id=getParameter("sid"); Cookie cookie=new Cookie("JSESSIONID", id); cookie.setPath("/"); response.addCookie(cookie); }
时间: 2024-10-11 13:44:13
@Action("sidTest") public void sidTest() { HttpSession session = request.getSession(); String id=getParameter("sid"); Cookie cookie=new Cookie("JSESSIONID", id); cookie.setPath("/"); response.addCookie(cookie); }