本文共 1247 字,大约阅读时间需要 4 分钟。
版本:apache-tomcat-8.0.53.zip
session.jsp
test2 SessionID is <%=session.getId()%> SessionIP is <%=request.getServerName()%> SessionPort is <%=request.getServerPort()%> <% out.println("Response from tomcat2"); %>
比如放置在:
/Users/da/Library/Tomcat/apache-tomcat-8.0.53-8082/webapps/ROOT/session.jsp另一台一样。访问:
sessionid一致:
SessionID is 6E5D26E07FDE6FB5D01A59F457D64333 SessionIP is tomcat.chinaunicom.tech SessionPort is 80 Response from tomcat1SessionID is 6E5D26E07FDE6FB5D01A59F457D64333 SessionIP is tomcat.chinaunicom.tech SessionPort is 80 Response from tomcat2
参考官网:
翻译:转载于:https://blog.51cto.com/170023/2154861