[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

SessionHandler_sapdb:: (2 méthodes):
  SessionHandler_sapdb()
  read()


Classe: SessionHandler_sapdb  - X-Ref

SessionHandler implementation for PHP's PEAR database abstraction layer.

If you access your database through ODBC, you will almost certainly need
to change PHP's default value for odbc.defaultlrl (this is a php.ini
setting). The default is 4096, which is too small (your session data will
be chopped off), and setting it to 0 DOES NOT work - that doesn't mean no
limit, for some reason. odbc.defaultlrl = 32768 seems to work pretty well
(using MSSQL-2000).

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.</pre>

Optional parameters:<pre>
'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.sapdb.sql.

$Horde: framework/SessionHandler/SessionHandler/sapdb.php,v 1.13.12.8 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.

SessionHandler_sapdb($params = array()   X-Ref
Constructs a new SQL SessionHandler object.

param: array $params  A hash containing connection parameters.

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.



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