SessionData
- Full name:
\Qubus\Http\Session\SessionData
- This class is marked as final and can't be subclassed
- This class implements:
\Qubus\Http\Session\HttpSession
- This class is a Final class
Properties
oldSessionId
objects
clientSessionId
data
isNew
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$clientSessionId | string | |
$data | array | |
$isNew | bool |
sessionId
Returns the session's uuid which is derived from the client session's id.
Throws:
clientSessionId
Client session id which is stored in client's cookie and never on the server.
getData
Returns an array of object data.
Throws:
get
Retrieve session entity.
Parameters:
Parameter | Type | Description |
---|---|---|
$type | string | Fully qualified class name. |
Throws:
clear
Clear all session data, evict all objects from this Session, and renew {@see renew()} the Session ID.
Throws:
renew
Explicitly renew the Session ID while preserving any Session data.
Throws:
isNew
isRenewed
oldSessionID
checksum
Internally checksum a class implementation.
Any change to the class source-file will cause invalidation of the session-model, such that changes to the code will effectively cause session-models to re-initialize to their default state - this is necessary because even a change to a type-hint in a doc-block could cause an unserialize() call to inject the wrong type of value.
Parameters:
Parameter | Type | Description |
---|---|---|
$type | string | fully-qualified class-name |
Return Value:
MD5 checksum
Throws:
Automatically generated on 2025-10-13