Source Code : JSP: view session

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: view session



<%@page contentType="text/html"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<html>
<head><title>View Session JSP </title></head>
<body>
<h2>Session Info From A JSP</h2>
The session id: 

<c:out value="${pageContext.session.id}"/>

<br>

<br>
The session creation time as a long value: 

<c:out value="${pageContext.session.creationTime}"/>

<br>

<br>
The last accessed time as a long value: 

<c:out value="${pageContext.session.lastAccessedTime}"/>

<br>

<br>
</body>
</html>
           
       

Thank with us