Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
SessionStorage wrapper
TYPO3 ships a module acting as a wrapper for session
. It
behaves similar to the local
, except that the stored data is dropped
after the browser session has ended.
The module TYPO3/
allows
to store data in the session
.
API methods
get
(key) - Fetches the data behind the key.
set
(key, value) - Sets/overrides a key with any arbitrary content.
isset
(bool)(key) - Checks if the key is in use.
unset
(key) - Removes a key from the storage.
clear
() - Empties all data inside the storage.
unset
By Prefix (prefix) - Empties all data inside the storage with their keys starting with a prefix.