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

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

  <!-- ===================================================================== -->
  <!-- Configure a factory for NullSessionCache                              -->
  <!-- ===================================================================== -->
  <Call name="addBean">
    <Arg>
      <New class="org.eclipse.jetty.session.NullSessionCacheFactory">
        <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>
      </New>
    </Arg>
  </Call>

</Configure>
