lib/ezsession/classes/ezpsessionhandlerdb.php
File containing DB session handler
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
-
eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
Package: lib\ezsessionDB session handler class
CALLBACKS:
destroy, gc, regenerate & cleanup functions MUST implement callbacks.
Definition is documented in functions on this class, examples can be
found in the handlers and examples of use can be sessin in ezsession.php
class doc section.
- Parent(s)
- \ezpSessionHandler
- Since
- 4.4
Constants


GC_MAX_EXECUTION_TIME
= 300


GC_MAX_EXECUTION_TIME_CLI
= 3000
Properties



int|false
$gcSessionsPrIteration= '50'
Specifies how many sessions should be deleted pr iteration
when garbage collecting sessions (to avoid sql calls that lock db)
Default value50
Details
- Type
- int | false
Methods



count(
)
:
int | null
staticCounts the number of session and returns it.
Returns
Type |
Description |
int | null |
Returns null if handler does not support this. |



deleteByUserIDs(
\array(int) $userIDArray
)
:
void
Remove all session data for a specific user
Parameters
Name |
Type |
Description |
$userIDArray |
\array(int) |
|



gc(
int $maxLifeTime
)
:
bool
Session gc (garbageCollector) handler
Parameters
Name |
Type |
Description |
$maxLifeTime |
int |
|
Returns



regenerate(
bool $updateBackendData
=
true
)
:
bool
Parameters
Name |
Type |
Description |
$updateBackendData |
bool |
(true if we want to keep session data with the new session id)
|
Returns



write(
string $sessionId, string $sessionData
)
:
bool
Parameters
Name |
Type |
Description |
$sessionId |
string |
|
$sessionData |
string |
Binary session data |
Returns