<%@ page contentType="text/html; charset=utf-8"%> 获取和添加Cookie

获取和添加Cookie


Cookie对象的信息:
${cookie.userName }
Cookie对象的名称和值:
${cookie.userName.name }=${cookie.userName.value } <% response.addCookie(new Cookie("userName", "马亦飞")); %>