Mantis - Resin
Viewing Issue Advanced Details
5639 minor always 01-27-14 14:11 03-18-14 10:27
alex  
ferg  
normal  
closed 4.0.37  
fixed  
none    
none 4.0.39  
0005639: session replication goes unsync with session-save mode set to before-headers.
rep by Thomas Rogan

change session-config/save-mode to "before-headers"

open browser issue 3 requests to a:8080
open second window issue request to b:8082
make sure value of session is the same and value of 'foo:' in the second window is 3

change windows and watch session go unsynchronized as new requests get issued.
<%@ page session="true"%><%


  Integer i = (Integer) session.getAttribute("foo");
  
  if (i == null)
     i = new Integer(0);
  else
     i = new Integer(i.intValue() + 1);

  session.setAttribute("foo", i);

  out.println(((com.caucho.server.webapp.WebApp)application).getServer());
  out.println("foo: " + i);
%>

Notes
(0006391)
alex   
01-27-14 14:13   
workaround: unset session-config/save-mode

(0006411)
thomas_rogan   
03-03-14 14:49   
Howdy guys... Just curious if there was any movement on this issue. We're bumping into the need for this feature. Thanks! -Tom
(0006417)
ferg   
03-18-14 10:27   
server/01nw