Cookie简单测试(一)

流沙 | JAVA | 2016-07-13
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 获得用户请求的时候,封装在request中的cooike信息 Cookie[] cookies = request.getCookies(); // 遍历cookie数组 Cookie targetCookie = findTargetCookie(cookies, "lastvisit"); response.se...

阅读全文>>

ė444次浏览 60条评论 0 cookie

Ɣ回顶部