AzureBlobSessionPersistence
SessionPersistenceInterface storing one JSON blob per session id (named <sid>.json) in a single Azure Blob container.
Azure takes the container per call, so the client is wrapped in an AzureBlobContainerClient that binds it and creates it on first write. Everything after that is the shared behaviour in ObjectStoreSessionPersistence.
Synopsis
Section titled “Synopsis”final class AzureBlobSessionPersistence extends ObjectStoreSessionPersistence
| Extends | ObjectStoreSessionPersistence |
| Source | AzureBlobSessionPersistence.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(ObjectStoreClientInterface $client, string $container = 'quiote-sessions', SessionCodecInterface $codec = null): mixed
Defaults to the portable codec: for an object store the round-trip dominates, and a readable stored object is worth more than a compact one.
| Parameter | Type | Description |
|---|---|---|
$client | ObjectStoreClientInterface | The store, already bound to its bucket or container. |
$container | string | |
$codec | SessionCodecInterface | Defaults to the portable codec: for an object store the round-trip dominates, and a readable stored object is worth more than a compact one. |
Returns mixed
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
delete() | ObjectStoreSessionPersistence | Deletes the session’s object from the store. |
load() | ObjectStoreSessionPersistence | Fetches the session’s object from the store and decodes it. |
save() | ObjectStoreSessionPersistence |