<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <!-- ===================================================================== -->
  <!-- Configure a factory for DefaultSessionCache                           -->
  <!-- ===================================================================== -->
  <Call name="addBean">
    <Arg>
      <New class="org.eclipse.jetty.session.DefaultSessionCacheFactory">
        <Set name="evictionPolicy"><Property name="jetty.session.evictionPolicy" default="-1" /></Set>
        <Set name="saveOnInactiveEviction"><Property name="jetty.session.saveOnInactiveEviction" default="false" /></Set>
        <Set name="saveOnCreate"><Property name="jetty.session.saveOnCreate" default="false" /></Set>
        <Set name="removeUnloadableSessions"><Property name="jetty.session.removeUnloadableSessions" default="false"/></Set>
        <Set name="flushOnResponseCommit"><Property name="jetty.session.flushOnResponseCommit" default="false"/></Set>
        <Set name="invalidateOnShutdown"><Property name="jetty.session.invalidateOnShutdown" default="false"/></Set>
      </New>
    </Arg>
  </Call>

</Configure>
