[ Index ] |
PHP Cross Reference of phpBB-3.3.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 180 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Interface: SessionInterface - X-Ref
Interface for the session.start() X-Ref |
Starts the session storage. return: bool True if session started |
getId() X-Ref |
Returns the session ID. return: string The session ID |
setId($id) X-Ref |
Sets the session ID. param: string $id |
getName() X-Ref |
Returns the session name. return: mixed The session name |
setName($name) X-Ref |
Sets the session name. param: string $name |
invalidate($lifetime = null) X-Ref |
Invalidates the current session. Clears all session attributes and flashes and regenerates the session and deletes the old session from persistence. return: bool True if session invalidated, false if error param: int $lifetime Sets the cookie lifetime for the session cookie. A null value |
migrate($destroy = false, $lifetime = null) X-Ref |
Migrates the current session to a new session id while maintaining all session attributes. return: bool True if session migrated, false if error param: bool $destroy Whether to delete the old session or leave it to garbage collection param: int $lifetime Sets the cookie lifetime for the session cookie. A null value |
save() X-Ref |
Force the session to be saved and closed. This method is generally not required for real sessions as the session will be automatically saved at the end of code execution. |
has($name) X-Ref |
Checks if an attribute is defined. return: bool true if the attribute is defined, false otherwise param: string $name The attribute name |
get($name, $default = null) X-Ref |
Returns an attribute. return: mixed param: string $name The attribute name param: mixed $default The default value if not found |
set($name, $value) X-Ref |
Sets an attribute. param: string $name param: mixed $value |
all() X-Ref |
Returns attributes. return: array Attributes |
replace(array $attributes) X-Ref |
Sets attributes. param: array $attributes Attributes |
remove($name) X-Ref |
Removes an attribute. return: mixed The removed value or null when it does not exist param: string $name |
clear() X-Ref |
Clears all attributes. |
isStarted() X-Ref |
Checks if the session was started. return: bool |
registerBag(SessionBagInterface $bag) X-Ref |
Registers a SessionBagInterface with the session. |
getBag($name) X-Ref |
Gets a bag instance by name. return: SessionBagInterface param: string $name |
getMetadataBag() X-Ref |
Gets session meta. return: MetadataBag |
Generated: Sun Jun 23 12:25:44 2024 | Cross-referenced by PHPXref 0.7.1 |