lib/ezsession/classes/ezpsessionhandlerphp.php
File containing PHP session handler
- Copyright
- Copyright (C) 1999-2010 eZ Systems AS. All rights reserved.
- License
-
GNU General Public License v2.0
- Package
- lib
- Version
- 4.4.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
)
:
voidreimp (not used in this handler)
Parameters
| Name |
Type |
Description |
| $userIDArray |
\array(int) |
|



destroy(
string $sessionId
)
:
boolreimp (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
)
:
boolreimp (not used in this handler)
Parameters
| Name |
Type |
Description |
| $maxLifeTime |
int |
In seconds |
Returns



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



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