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