<h1>Session in JSP</h1> Your session ID is : <%=session.getId()%> <br> Session created at <%=new Date(session.getCreationTime())%> <br> Last time of activity <%=new Date(session.getLastAccessedTime())%> <br>
</BODY> </HTML>
The output of the code is :
Code:
Your session ID is : 7DF1641B1708A61B84652D34EEE39BB8 Session created at Sat Jan 24 01:27:07 EET 2009 Last time of activity Sat Jan 24 01:27:07 EET 2009
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )