Dashboard > Penrose 1.0 > ... > Penrose Server User Guide > Session Handler
Session Handler
Added by Endi S. Dewata, last edited by Endi S. Dewata on Feb 28, 2006
Labels: 
(None)


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.

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators