//sessionObject.jsp
<html>
<head>
<title>The Session Object</title>
</head>
<body>
<h1>The Session Object</h1>
Here are some properties of your session object.
<br>The session was created at <%= session.getCreationTime() %>
<br>The session has an inactive interval of <%= session.getMaxInactiveInterval() %>
<br>The session id is <%= session.getId() %>
</body>
</html>
///
//logout.jsp
<html>
<head>
<title>Log out</title>
</head>
<body>
<h1>Log Out Page</h1>
<%
if (session != null) {
session.invalidate();
}
%>
You are now logged out. Bye
</body>
</html>