PortaBilling API

SessionFileStorage
in package
implements SessionStorageInterface

Use file as session data storage.

This storage is useful for server applications which use one account to access the billing and share the session auth data.

It will do the best to lock from concurent processes on sesson refresh, but there no way to guarantee the lock. Please, let me know in a cse you really use it under high concurrent load.

Interfaces, Classes, Traits and Enums

SessionStorageInterface
Interface for session storage

Table of Contents

__construct()  : mixed
Setup storage to use file

Methods

__construct()

Setup storage to use file

public __construct(string $fileName[, int $timeout = 300 ]) : mixed
Parameters
$fileName : string

name of the file to use as persistent session storage

$timeout : int = 300

file lock timeout in milliseconds

Return values
mixed —

Search results