Javaweb,cookieCookie
Cookie从请求中拿到cookie信息服务器响应给客户端cookie关键代码Cookie[] cookies = req.getCookies();//获取cookiecookie.getName();//获取cookie的keycookie.getValue();//获取值cookie.setMaxAge(24*60*60);//设置cookie有效期示例 protected void doGet(HttpServletRequest req, HttpServletRes