session storage area. Items in
session storage are stored in memory for the duration of the browser session and are not persisted to disk.
By default, it's not exposed to content scripts, but this behavior can be changed through
The amount of data that an extension can store in the session storage area is limited to 10 MB, unless stated otherwise in the browser compatibility table.
When the browser stops, all session storage is cleared. When the extension is uninstalled, its associated session storage is cleared.
session object implements the methods defined on the
Retrieves one or more items from the storage area.
Gets the amount of storage space (in bytes) used for one or more items in the storage area.
Stores one or more items in the storage area. If the item exists, its value is updated.
Sets the access level for the storage area.
Removes one or more items from the storage area.
Removes all items from the storage area.
session object implements the events defined on the
Fires when one or more items in the storage area change.
BCD tables only load in the browser
Note: This API is based on Chromium's
chrome.storage API. This documentation is derived from
storage.json in the Chromium code.