ArraySession
final class ArraySession implements SessionInterface (View source)
A session held in memory: what a test injects, and what a request without a session (the public API) uses as a request-scoped cache.
Methods
No description
No description
No description
No description
No description
No description
Drops every stored value, keeping the session itself open
Opens the session when it is not open yet
Writes the session out and closes it for this request
No description
No description
No description
The session id, an empty string when no session is open
Details
__construct(array $values = [])
No description
mixed
get(string $key, mixed $default = null)
No description
void
set(string $key, mixed $value)
No description
bool
has(string $key)
No description
void
remove(string $key)
No description
array
all()
No description
void
clear()
Drops every stored value, keeping the session itself open
void
start()
Opens the session when it is not open yet
void
writeClose()
Writes the session out and closes it for this request
void
regenerateId(bool $deleteOldSession = true)
No description
void
destroy()
No description
bool
isActive()
No description
string
id()
The session id, an empty string when no session is open