title: Form Runner Persistence, Session Cookie
body: <p>We are integrating Form Runner/Builder into a project with a custom persistence layer.</p>
  
  <p>Right now we have emptySessionPath="true" set to keep Orbeon and our Java app on the same session.</p>
  
  <p>Orbeon is passing the jsessionid cookie in the persistence CRUD calls... except for the following instance....</p>
  
  <ol>
  <li>User connects to our Java app and logs in, jsessionid cookie is set</li>
  <li>User visits an existing form instance at /fr/OurApp/formtest/edit/3eb4ddcf03f2410084e5578adb1e2a7b (Session Cookie is present) </li>
  <li>Persistence call is made to our custom persistence layer, but cookie is not forwarded</li>
  </ol>
  
  <p>But, if the user was to first edit the form itself with a call to /fr/orbeon/builder/edit/f40efbe298204d16b6474fcdfea4c9fd which does pass the cookie to the persistence layer</p>
  
  <p>At this point the user can go visit step 2 to complete the form instance and the cookie will persist. It seems that for some reason starting form builder is required to get the cookie to forward to the persistence layer when completing the form?</p>
  
  <p>Any ideas on why the cookie isn't getting passed on step 2?</p>
  
  <p>FYI this is on Orbeon 3.9 CE, also same behavior in 3.8. Using VMWare TC Server (Tomcat). Our java app is a Spring/Grails app.</p>