> 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: setSessionStorageItem() static method

APISummary
The `lynx.setSessionStorageItem` method sets cached data in the current WhiteBoard. Only LynxViews that share this WhiteBoard can access the same data. Use [lynx.getSessionStorageItem](/next/api/lynx-api/lynx/lynx-get-session-storage.md) to retrieve it.

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

## Syntax

```ts
setSessionStorageItem(key: string, value: object): void;
```

### Parameters

#### key

The key for the cached data. It can be used subsequently to retrieve the data or listen for changes.

#### value

The data object to be stored.

### Return Value

None (`undefined`).

## Compatibility

**Compatibility Table**

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

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/setSessionStorageItem.json)

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

**`setSessionStorageItem`**

The `lynx.setSessionStorageItem` method is used to set data shared across multiple LynxViews.

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

