java_web/webapp/session.jsp
2024-12-09 22:17:48 +08:00

13 lines
268 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=gb2312" %>
<%@ page session="true" %>
<%
session.setAttribute("user","欧阳清风");
%>
<html>
<body>
您的会话ID是<%=session.getId()%><br>
session对象中存放的变量user的值为<%=session.getAttribute("user")%>
</body>
</html>