logout.jsp
来自「一个简单实用的网上书城,可当作原型使用」· JSP 代码 · 共 45 行
JSP
45 行
<%@page contentType="text/html"%><%@page pageEncoding="gbk"%><%@page import="czm.*"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>退出登录</title> </head> <body> <h1>退出登录</h1> <% if(AuthManager.Logout(session, AuthManager.UserRole)) { Cookie[] cookies=request.getCookies(); for(int i=0; i<cookies.length; i++) { cookies[i].setMaxAge(0); response.addCookie(cookies[i]); } %> <center> 你已安全退出本站,欢迎下次再次光临<br/> <a href="default.html">返回首页</a> </center> <% } %> </body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?