vi /etc/resin/app-default.xml
<web-app-default>
<!-- configures the default class loader -->
<class-loader>
<compiling-loader path="WEB-INF/classes"/>
<library-loader path="WEB-INF/lib"/>
</class-loader>
<session-config cookie-domain="mydomain.com">
<session-timeout>30</session-timeout>
<session-max>4096</session-max>
</session-config>
OR
vi /etc/resin/cluster-default.xml
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="urn:java:com.caucho.resin">
<cluster-default>
<host-default>
....
<session-config>
<use-persistent-store>${session_store}</use-persistent-store>
<session-timeout>480</session-timeout>
<session-max>4096</session-max>
<enable-url-rewriting>false</enable-url-rewriting>
</session-config>
</web-app-default>
</host-default>
</cluster-default>
</resin>