[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/SessionHandler/ -> sql.php (sommaire)

(pas de description)

Poids: 306 lignes (10 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

SessionHandler_sql:: (7 méthodes):
  close()
  read()
  write()
  destroy()
  gc()
  getSessionIDs()
  _connect()


Classe: SessionHandler_sql  - X-Ref

SessionHandler implementation for PHP's PEAR database abstraction layer.

Required parameters:<pre>
'phptype'   The database type (e.g. 'pgsql', 'mysql', etc.).</pre>

Required by some database implementations:<pre>
'hostspec'  The hostname of the database server.
'protocol'  The communication protocol ('tcp', 'unix', etc.).
'database'  The name of the database.
'username'  The username with which to connect to the database.
'password'  The password associated with 'username'.
'options'   Additional options to pass to the database.
'tty'       The TTY on which to connect to the database.
'port'      The port on which to connect to the database.</pre>

Optional parameters:<pre>
'persistent'  Use persistent DB connections? (boolean)
'table'       The name of the sessiondata table in 'database'.  Default
is 'horde_sessionhandler'.</pre>

The table structure for the SessionHandler can be found in
horde/scripts/sql/horde_sessionhandler.sql.

$Horde: framework/SessionHandler/SessionHandler/sql.php,v 1.22.10.13 2006/01/01 21:28:34 jan Exp $

Copyright 2002-2006 Mike Cochrane <mike@graftonhall.co.nz>

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

close()   X-Ref
Close the SessionHandler backend.

return: boolean  True on success, false otherwise.

read($id)   X-Ref
Read the data for a particular session identifier from the
SessionHandler backend.

param: string $id  The session identifier.
return: string  The session data.

write($id, $session_data)   X-Ref
Write session data to the SessionHandler backend.

param: string $id            The session identifier.
param: string $session_data  The session data.
return: boolean  True on success, false otherwise.

destroy($id)   X-Ref
Destroy the data for a particular session identifier in the
SessionHandler backend.

param: string $id  The session identifier.
return: boolean  True on success, false otherwise.

gc($maxlifetime = 300)   X-Ref
Garbage collect stale sessions from the SessionHandler backend.

param: integer $maxlifetime  The maximum age of a session.
return: boolean  True on success, false otherwise.

getSessionIDs()   X-Ref
Get a list of the valid session identifiers.

return: array  A list of valid session identifiers.

_connect()   X-Ref
Attempts to open a connection to the SQL server.

return: boolean  True on success; exits (Horde::fatal()) on error.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7