Class SessionHandler_ldap

Description

SessionHandler implementation for LDAP directories.

Required parameters:

   'hostspec' - (string) The hostname of the ldap server.
   'port'     - (integer) The port number of the ldap server.
   'dn'       - (string) The bind DN.
   'password' - (string) The bind password.

$Horde: framework/SessionHandler/SessionHandler/ldap.php,v 1.2.2.3 2007/12/20 13:49:39 jan Exp $

This code is adapted from the comments at http://www.php.net/session-set-save-handler.

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /SessionHandler/SessionHandler/ldap.php (line 23)

SessionHandler
   |
   --SessionHandler_ldap
Variable Summary
 resource $_conn
Method Summary
 boolean destroy (string $id)
 boolean gc ([integer $maxlifetime = 300])
Variables
resource $_conn (line 30)

Handle for the current database connection.

Inherited Variables

Inherited from SessionHandler

SessionHandler::$_connected
SessionHandler::$_force
SessionHandler::$_params
SessionHandler::$_sig
Methods
destroy (line 115)

Destroy the data for a particular session identifier in the SessionHandler backend.

  • return: True on success, false otherwise.
boolean destroy (string $id)
  • string $id: The session identifier.

Redefinition of:
SessionHandler::destroy()
Destroy the data for a particular session identifier in the SessionHandler backend.
gc (line 128)

Garbage collect stale sessions from the SessionHandler backend.

  • return: True on success, false otherwise.
boolean gc ([integer $maxlifetime = 300])
  • integer $maxlifetime: The maximum age of a session.

Redefinition of:
SessionHandler::gc()
Garbage collect stale sessions from the SessionHandler backend.

Inherited Methods

Inherited From SessionHandler

 SessionHandler::SessionHandler()
 SessionHandler::close()
 SessionHandler::countAuthenticatedUsers()
 SessionHandler::destroy()
 SessionHandler::factory()
 SessionHandler::gc()
 SessionHandler::getSessionIDs()
 SessionHandler::getSessionsInfo()
 SessionHandler::listAuthenticatedUsers()
 SessionHandler::open()
 SessionHandler::read()
 SessionHandler::singleton()
 SessionHandler::write()
 SessionHandler::__destruct()

Documentation generated on Sun, 30 Jan 2011 05:19:13 +0000 by phpDocumentor 1.4.3