On Thu, May 29, 2014 at 12:39 PM, David Rees <dree...@gmail.com> wrote:
>
> Yes. Specifics to make this happen seem to be:
>
> TC 7.0.54 in a cluster, Tapestry 5.2.6 + Tapestry Spring Security.

OK, I was wrong, no Tapestry or Spring Security is required, just a
couple JSPs are required to reproduce. Key is that clustering needs to
be enabled.

Drop these two JSP files into your 7.0.54 cluster enabled web app.

/** session.jsp **/

<%@page session="true"%>
<html>
<body>
<table>
<tr><td>Session creation time:</td><td><%= session.getCreationTime()
%></td></tr>
<tr><td>Session last accessed:</td><td><%=
session.getLastAccessedTime() %></td></tr>
<tr><td>Current time:</td><td><%= System.currentTimeMillis() %></td></tr>
<tr><td>Is Session Id from URL?:</td><td><%=
request.isRequestedSessionIdFromURL() %></td></tr>
<tr><td><a href="session.jsp">Reload Page</a></td><td><a
href="invalidate.jsp">Invalidate</a></td></tr>
</table>
</body>
</html>

/** invalidate.jsp **/
<%
request.getSession().invalidate();
response.sendRedirect("session.jsp");
%>

Make sure
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
is added to the Host of the webapp you dropped the files above into.

Clicking on Reload Page will show the same creation time. On a 7.0.53
if you click on Invalidate, you will get a new creation time. On
7.0.54, you do not.

I'll open a ticket with these details, too.

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to