-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.jsp
56 lines (49 loc) · 1.61 KB
/
logout.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<!DOCTYPE html>
<html>
<head>
<link href="logout.css" rel="stylesheet" type="text/css">
</head>
<body>
<header class="header">
<div class="left">
<!-- left box for logo -->
<img src="logo4.png" >
<div class="logo">Tours Planet</div>
</div>
<div class="mid">
<!-- mid box for navbar -->
<ul class="navbar">
<li><a href="http://localhost:8080/project/">Home</a></li>
<li><a href="http://localhost:8080/project/login.html">LogIn</a></li>
<li><a href="http://localhost:8080/project/signup.html">SignUp</a></li>
<li><a href="http://localhost:8080/project/trips.html">Trips</a></li>
<li><a href="http://localhost:8080/project/services.html">Services</a></li>
<li><a href="http://localhost:8080/project/logout.jsp">LogOut</a></li>
</ul>
</div>
<div class="right">
<!-- right box for buttons -->
<button class="btn">Call Us</button>
<button class="btn">Email Us</button>
</div>
</header>
<%
if(request.getSession(false)!=null) {
request.getSession(false).invalidate();
%>
<div>
<p class="l">Logged out successfully</p>
</div>
<%
}else {
%>
<div>
<p class="l">You are not Logged In <a href="http://localhost:8080/project/login.html">LogIn here</a></p>
</div>
<%
}
%>
</body>
</html>