PortaBilling API

SessionPHPSessionStorage
in package
implements SessionStorageInterface

Class to use PHP Session storage.

Use of session locks any other php request with the same session. It will wait for session unlocked and this implementation rely on that.

If you use session_write_close() to release the session, please do it after the wrapper setup for it may login or refresh token and save it safe way.

Also, keep in mind that Billing may return auth error even session token is not yet expired. When credentials given to config, SessionManager transparently relogins. But if you have PHP session already released, new token will not be stored in the session after refresh/relogin.

Interfaces, Classes, Traits and Enums

SessionStorageInterface
Interface for session storage

Table of Contents

__construct()  : mixed
Setup class

Methods

__construct()

Setup class

public __construct([string $sessionName = null ]) : mixed
Parameters
$sessionName : string = null

Optional session name to start if it is not yet started.

Return values
mixed —

Search results