<%
Cookie cookies[]=request.getCookies(); //读出用户硬盘上的Cookie
%>
<html>
<body>
<div>cookie:的<%=cookies[0].getName()%> = <%=cookies[0].getValue()%></div>
</body>
</html>
获取session的id:${pageContext.session.id}
<%
Cookie cookies[]=request.getCookies(); //读出用户硬盘上的Cookie
%>
<html>
<body>
<div>cookie:的<%=cookies[0].getName()%> = <%=cookies[0].getValue()%></div>
</body>
</html>
获取session的id:${pageContext.session.id}