Sun Java System Web Server 6.1 SP6 Programmer's Guide to Web Applications

Enabling PersistentManager

You may want to specify PersistentManager explicitly to change its default parameters. To do so, edit the sun-web.xml file for the web application as in the following example. Note that persistence-type must be set to file.

<sun-web-app>
        ...
        <session-config>
           <session-manager persistence-type=”file”>
              <manager-properties>
                 <property name=reapIntervalSeconds value=20 >
              </manager-properties>
              <store-properties>
                 <property name=directory value=sessions >
              </store-properties>
           </session-manage>
           ...
        </session-config>
        ...
</sun-web-app>

For more information about the sun-web.xml file, Chapter 7, Deploying Web Applications.