Cookie简单测试(一)

2016-7-13 流沙 JAVA

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

阅读全文>>

标签: cookie

评论(0) 浏览(396)


Powered by 流沙团