lib/ezsession/classes/ezpsessionhandlerphp.php
File containing PHP 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\ezsessionPHP session handler class
Does not register it self as opposed to most other handler, as the point is to let PHP handle most things
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
Methods



deleteByUserIDs(
\array(int) $userIDArray
)
:
void
reimp (not used in this handler)
Parameters
Name |
Type |
Description |
$userIDArray |
\array(int) |
|



destroy(
string $sessionId
)
:
bool
reimp (not used in this handler)
So callbacks on this function is not called, this is a known limitation.
Either make sure your data does not depend on session id, or make sure it is cleanup in session_gc.php (cronjob).
Parameters
Name |
Type |
Description |
$sessionId |
string |
|
Returns



gc(
int $maxLifeTime
)
:
bool
reimp (not used in this handler)
Parameters
Name |
Type |
Description |
$maxLifeTime |
int |
In seconds |
Returns



read(
string $sessionId
)
:
string | false
reimp (not used in this handler)
Parameters
Name |
Type |
Description |
$sessionId |
string |
|
Returns
Type |
Description |
string | false |
Binary session data |



regenerate(
bool $updateBackendData
=
true
)
:
bool
reimp (Only uses php and callbacks)
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
reimp (not used in this handler)
Parameters
Name |
Type |
Description |
$sessionId |
string |
|
$sessionData |
string |
Binary session data |
Returns