Update session-info.jsp hostname add
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
<%@page import="java.util.*" %>
|
||||
<%@page import="java.text.*" %>
|
||||
<%@page import="java.net.InetAddress" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@@ -34,6 +35,7 @@ sess.setAttribute("SessionAttr2", rand_MS+"");
|
||||
|
||||
|
||||
java.util.Enumeration e = sess.getAttributeNames();
|
||||
String hostname = InetAddress.getLocalHost().getHostName();
|
||||
%>
|
||||
<table border=1 bordercolor="gray" cellspacing=1 cellpadding=0 width="100%">
|
||||
<tr bgcolor="gray"><td colspan=2 align="center"><font color="white"><b>Session Info</b></font></td></tr>
|
||||
@@ -52,6 +54,9 @@ java.util.Enumeration e = sess.getAttributeNames();
|
||||
<tr>
|
||||
<td>Max Inactive Interval</td><td><%=maxInactiveInterval%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>hostname</td><td><%=hostname%></td>
|
||||
</tr>
|
||||
<tr bgcolor="cyan"><td colspan=2 align="center"><b>Session Vaule List<b></td></tr>
|
||||
<tr>
|
||||
<td align="center">NAME</td>
|
||||
|
||||
Reference in New Issue
Block a user