SessionInterface
interface SessionInterface (View source)
The request's session store. One implementation wraps PHP's own session, the other keeps the values in memory for tests and for request-scoped caches.
Methods
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
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