[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/Session/Storage/Handler/ -> LegacyPdoSessionHandler.php (summary)

(no description)

File Size: 268 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LegacyPdoSessionHandler:: (9 methods):
  __construct()
  open()
  close()
  destroy()
  gc()
  read()
  write()
  getMergeSql()
  getConnection()


Class: LegacyPdoSessionHandler  - X-Ref

Session handler using a PDO connection to read and write data.

Session data is a binary string that can contain non-printable characters like the null byte.
For this reason this handler base64 encodes the data to be able to save it in a character column.

This version of the PdoSessionHandler does NOT implement locking. So concurrent requests to the
same session can result in data loss due to race conditions.

__construct(\PDO $pdo, array $dbOptions = array()   X-Ref
Constructor.

List of available options:
* db_table: The name of the table [required]
* db_id_col: The column where to store the session id [default: sess_id]
* db_data_col: The column where to store the session data [default: sess_data]
* db_time_col: The column where to store the timestamp [default: sess_time]

param: \PDO  $pdo       A \PDO instance
param: array $dbOptions An associative array of DB options

open($savePath, $sessionName)   X-Ref
{@inheritdoc}


close()   X-Ref
{@inheritdoc}


destroy($sessionId)   X-Ref
{@inheritdoc}


gc($maxlifetime)   X-Ref
{@inheritdoc}


read($sessionId)   X-Ref
{@inheritdoc}


write($sessionId, $data)   X-Ref
{@inheritdoc}


getMergeSql()   X-Ref
Returns a merge/upsert (i.e. insert or update) SQL query when supported by the database.

return: string|null The SQL string or null when not supported

getConnection()   X-Ref
Return a PDO instance.

return: \PDO



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1