Пример #1
0
 /**
  * Create a new PgSQLSessionHandler instance.
  *
  * <br/><br/>
  *
  * <b>Available parameters:</b>
  *
  * <ul>
  *     <li><b>table</b>       - the table in which data will be stored</li>
  *     <li><b>data_col</b>    - the column where session data will be
  *                              stored</li>
  *     <li><b>id_col</b>      - the column where the session id will be
  *                              stored</li>
  *     <li><b>ts_col</b>      - the column where the session timestamp will be
  *                              stored</li>
  *     <li><b>crc32_check</b> - whether or not to use a crc32 hash to
  *                              compare session data</li>
  * </ul>
  *
  * @param string A connection string.
  * @param array  An associative array of database parameters.
  * @param bool   Whether or not the connection must be persistent.
  */
 function PgSQLSessionHandler($dbstring = NULL, $params = NULL, $persistent = FALSE)
 {
     parent::SQLSessionHandler($params);
     $this->dbstring = $dbstring;
     $this->persistent = $persistent;
 }
Пример #2
0
 /**
  * Create a new MySQLSessionHandler instance.
  *
  * <br/><br/>
  *
  * <b>Available connection-related parameters:</b>
  *
  * <ul>
  *     <li><b>db</b> - the database name</li>
  *     <li><b>host</b> - the database host</li>
  *     <li><b>user</b> - the database user</li>
  *     <li><b>password</b> - the database password</li>
  * </ul>
  *
  * <b>Available storage-related parameters:</b>
  *
  * <ul>
  *     <li><b>table</b>       - the table in which data will be stored</li>
  *     <li><b>data_col</b>    - the column where session data will be
  *                              stored</li>
  *     <li><b>id_col</b>      - the column where the session id will be
  *                              stored</li>
  *     <li><b>ts_col</b>      - the column where the session timestamp will be
  *                              stored</li>
  *     <li><b>crc32_check</b> - whether or not to use a crc32 hash to
  *                              compare session data</li>
  * </ul>
  *
  * @param array      An associative array of connection-related parameters.
  * @param array      An associative array of storage-related parameters.
  * @param persistent Whether or not the connection must be persistent.
  */
 function MySQLSessionHandler($connParams = NULL, $storParams = NULL, $persistent = FALSE)
 {
     parent::SQLSessionHandler($storParams);
     $this->params = $connParams;
     $this->persistent = $persistent;
 }