phpscript

manual

ClassGo

Session\Storage\Memory

Description

Session\Storage\Memory is session storage backed by process memory; sessions vanish when the process exits.

Session\Storage\Memory is a class phpscript declares.

$object = new Session\Storage\Memory();

Methods

public function delete(string $id): void

delete removes a session from memory.

The go method Delete.

public function delete_by_user(string $user_id): int

delete_by_user removes every session holding userID, counting what it took.

The go method DeleteByUser.

public function load(string $id): string

load retrieves a copy of a session's data.

The go method Load.

public function prune(int $max_age): void

prune removes sessions whose last save is older than maxAge.

The go method Prune.

public function save(string $id, string $data): void

save stores a copy of the session data.

The go method Save.

Binding

See also