Source Code : JSP and session 2

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

JSP and session 2

//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>



           
       

Thank with us