title: apache shiro - session is lost when the server restarts?
body: <p>I'm using Apache Shiro Security. 
  My settings ehcache.xml</p>
  
  <pre><code>    &lt;defaultCache
          maxElementsInMemory="10000"
          eternal="false"
          timeToIdleSeconds="120"
          timeToLiveSeconds="120"
          overflowToDisk="false"
          diskPersistent="false"
          diskExpiryThreadIntervalSeconds="120"
          /&gt;
  
  &lt;cache name="shiro-activeSessionCache"
         maxElementsInMemory="10000"
         overflowToDisk="true"
         eternal="true"
         timeToLiveSeconds="0"
         timeToIdleSeconds="0"
         diskPersistent="true"
         diskExpiryThreadIntervalSeconds="600"/&gt;
  </code></pre>
  
  <p><a href="http://shiro.apache.org/session-management.html#SessionManagement-EHCacheSessionDAO" rel="nofollow">EHCache Session Cache Configuration</a></p>
  
  <p>I use these settings on two different Tomcats. I do restart the server, the first sessions are saved, the second is not. What could it be?</p>