Session starts:") ; } else { accessCount = new Integer(accessCount.intValue()+1) ; out.println("
Session continues:") ; } session.setAttribute("accessCount",accessCount) ; out.println("
Session ID : " + session.getId()) ;
out.println("
Creation time : " + new Date(session.getCreationTime())) ;
if (accessCount.intValue() > 1) {
out.println("
Last access time : " + new Date(session.getLastAccessedTime())) ;
out.println("
Number of accesses : " + accessCount) ;
}
// Now pass Ping's URL though encodeURL (to add URL rewriting for the session if necessary)
String partnerURL = "MaintainSessionPing" ;
String encoded = response.encodeURL(partnerURL) ;
out.println("
Click here for Ping") ; // and Kill's URL partnerURL = "MaintainSessionKill" ; encoded = response.encodeURL(partnerURL) ; out.println("
Click here to kill the session") ; Furniture.doFooter(out) ; } // doGet } // class