[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

SessionHandler_mysql:: (8 méthodes):
  close()
  read()
  write()
  destroy()
  gc()
  getSessionIDs()
  _quote()
  _connect()


Classe: SessionHandler_mysql  - X-Ref

SessionHandler:: implementation for MySQL (native).

Required parameters:<pre>
'hostspec'   - The hostname of the database server.
'protocol'   - The communication protocol ('tcp', 'unix', etc.).
'username'   - The username with which to connect to the database.
'password'   - The password associated with 'username'.
'database'   - The name of the database.
'table'      - The name of the sessiondata table in 'database'.
'rowlocking' - Whether to use row-level locking and transactions (InnoDB)
or table-level locking (MyISAM).</pre>

Required for some configurations:<pre>
'port'  The port on which to connect to the database.</pre>

Optional parameters:<pre>
'persistent'  Use persistent DB connections? (boolean)</pre>

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

$Horde: framework/SessionHandler/SessionHandler/mysql.php,v 1.16.12.14 2006/03/29 19:06:46 jan Exp $

Copyright 2002-2006 Mike Cochrane <mike@graftonhall.co.nz>
Copyright 2002-2006 Chuck Hagenbuch <chuck@horde.org>
Copyright 2006 Jan Schneider <jan@horde.org>

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.

_quote($value)   X-Ref
Escape a mysql string.

param: string $value  The string to quote.
return: string  The quoted string.

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




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