-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignout.jsp
35 lines (34 loc) · 1.04 KB
/
signout.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<%--
Document : signout
Created on : May 4, 2020, 10:24:45 PM
Author : Kavishka Wijesekera
--%>
<%
session =request.getSession();
String username="";
if(session.getAttribute("username")==null ||session.getAttribute("username")==""||session.getAttribute("username").equals(null))
{
response.sendRedirect("index.jsp");
}
else
{
username=session.getAttribute("username").toString();
}
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
response.setHeader("Cache-Control", "no-cache,no-store,must-revalidate");
response.setHeader("progma","no-cache");
response.setDateHeader("Expires", 0);
%>
<center><h1>are u sure</h1></center>
<center><a href="logout.jsp"><input type="submit" value="enter"/></a></center>
</body>
</html>