The session handler manages Penrose sessions. You can configure the session handler in PENROSE_SERVER_HOME/conf/server.xml.
<server>
<session-handler>
<parameter>
<param-name>...</param-name>
<param-value>...</param-value>
</parameter>
</session-handler>
</server>
Parameters
The following parameters are supported:
| Parameter | Description | Default |
|---|---|---|
| maxSessions | Maximum number of Penrose sessions | 20 |
| maxIdleTime | Maximum session idle time (in minutes) | 5 |
The maxSessions parameter controls the maximum number of sessions that can be created at a given time. In stand-alone mode, if the number has been reached and an LDAP client tries to connect to Penrose, it will get an LDAP_BUSY return code. In embedded mode, if you try to call penrose.newSession() when the maximum number has been reached you will get a null value.
The maxIdleTime parameter controls the maximum amount of time where the session can be left idle (no LDAP operations performed). Once the limit has been reached, any subsequent invocations of LDAP operations on that session will generate an exception.
