> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# lynx: getSessionStorageItem() static method

APISummary
The `lynx.getSessionStorageItem` method retrieves cached data from the current WhiteBoard. LynxViews that share this WhiteBoard can retrieve the same data. Use [lynx.setSessionStorageItem](/next/api/lynx-api/main-thread/lynx-set-session-storage.md) to set it.

See [Share Data Across LynxViews](/next/guide/share-data-across-lynxviews.md) for sharing scope, native configuration, and lifecycle management.

## Syntax

```ts
let value = lynx.getSessionStorageItem(key);
```

### Parameters

#### key

The key for the cached data, used to retrieve data and listen for changes.

### Return Value

The cached data object.

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.lynx.getSessionStorageItem`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/getSessionStorageItem.json) · [API Reference](/next/api/lynx-api/lynx/lynx-get-session-storage)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| getSessionStorageItem | Yes (2.9) | Yes (3.8) | Yes (2.9) | Yes (3.5) | Yes (3.5) | No |

**`getSessionStorageItem`**

The `lynx.getSessionStorageItem` method is used to retrieve data shared across multiple LynxViews. This enables data sharing between multiple pages via `SessionStorage`. You can call [lynx.setSessionStorageItem](./lynx-set-session-storage.mdx) to set the cached data.

- **Web — Not supported:** The Web runtime does not implement the native session-storage bridge.

