SessionSection
class SessionSection implements IteratorAggregate, ArrayAccess
Session section.
Methods
Returns an iterator over all section variables.
Sets a variable in this session section.
Gets a variable from this session section.
Removes a variable or whole section.
No description
No description
No description
No description
No description
No description
No description
No description
Sets the expiration of the section or specific variables.
Removes the expiration from the section or specific variables.
Details
at line 23
__construct(Session $session, string $name)
Do not call directly. Use Session::getSection().
at line 33
Iterator
getIterator()
Returns an iterator over all section variables.
at line 43
void
set(string $name, mixed $value, string|null $expire = null)
Sets a variable in this session section.
at line 58
mixed
get(string $name)
Gets a variable from this session section.
at line 73
void
remove(string|array|null $name = null)
Removes a variable or whole section.
at line 91
void
__set(string $name, $value)
No description
at line 100
mixed
__get(string $name)
No description
at line 110
bool
__isset(string $name)
No description
at line 119
void
__unset(string $name)
No description
at line 127
void
offsetSet($name, $value)
No description
at line 135
mixed
offsetGet($name)
No description
at line 143
bool
offsetExists($name)
No description
at line 151
void
offsetUnset($name)
No description
at line 163
SessionSection
setExpiration(string|null $expire, string|array|null $variables = null)
Sets the expiration of the section or specific variables.
at line 190
void
removeExpiration(string|array|null $variables = null)
Removes the expiration from the section or specific variables.