{
  "doc": {
    "id": "api/commands/getallsessionstorage",
    "title": "cy.getAllSessionStorage()",
    "description": "Get sessionStorage data for all origins with which the test has interacted in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/getallsessionstorage.md",
    "version": "fbc9225067c51c52ee13224e3b702cf8a025ec12",
    "updated_at": "2026-08-14T12:36:26.878Z",
    "headings": [
      {
        "id": "api/commands/getallsessionstorage#getallsessionstorage",
        "text": "getAllSessionStorage",
        "level": 1
      },
      {
        "id": "api/commands/getallsessionstorage#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/getallsessionstorage#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#yields",
        "text": "Yields",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/commands/getallsessionstorage#get-all-sessionstorage",
        "text": "Get all sessionStorage",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/getallsessionstorage#requirements",
        "text": "Requirements",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#assertions",
        "text": "Assertions",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#timeouts",
        "text": "Timeouts",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/getallsessionstorage#syntax",
      "doc_id": "api/commands/getallsessionstorage",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\ncy.getAllSessionStorage()cy.getAllSessionStorage(options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.getAllSessionStorage()\n```\n\n### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `cy.getAllSessionStorage()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n\n### Yields\n\n`cy.getAllSessionStorage()` yields an object where the keys are origins and the values are key-value pairs of `sessionStorage` data.\n\nFor example, if `key1` is set to `value1` on `https://example.cypress.io` and `key2` is set to `value2` on `https://www.cypress-dx.com`, `cy.getAllSessionStorage()` will yield:\n\n```\n{  'https://example.cypress.io': {    key1: 'value1',  },  'https://www.cypress-dx.com': {    key2: 'value2',  },}\n```\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/getallsessionstorage.json",
      "token_estimate": 145
    },
    {
      "id": "api/commands/getallsessionstorage#arguments",
      "doc_id": "api/commands/getallsessionstorage",
      "heading": "Arguments",
      "heading_level": 3,
      "content_markdown": "### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `cy.getAllSessionStorage()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n",
      "section": "api",
      "anchors": [
        "arguments"
      ],
      "path": "/llm/json/chunked/api/commands/getallsessionstorage.json",
      "token_estimate": 57
    },
    {
      "id": "api/commands/getallsessionstorage#yields",
      "doc_id": "api/commands/getallsessionstorage",
      "heading": "Yields",
      "heading_level": 3,
      "content_markdown": "### Yields\n\n`cy.getAllSessionStorage()` yields an object where the keys are origins and the values are key-value pairs of `sessionStorage` data.\n\nFor example, if `key1` is set to `value1` on `https://example.cypress.io` and `key2` is set to `value2` on `https://www.cypress-dx.com`, `cy.getAllSessionStorage()` will yield:\n\n```\n{  'https://example.cypress.io': {    key1: 'value1',  },  'https://www.cypress-dx.com': {    key2: 'value2',  },}\n```\n",
      "section": "api",
      "anchors": [
        "yields"
      ],
      "path": "/llm/json/chunked/api/commands/getallsessionstorage.json",
      "token_estimate": 72
    },
    {
      "id": "api/commands/getallsessionstorage#rules",
      "doc_id": "api/commands/getallsessionstorage",
      "heading": "Rules",
      "heading_level": 2,
      "content_markdown": "## Rules\n\n### Requirements\n\n*   `cy.getAllSessionStorage()` requires being chained off of `cy`.\n\n### Assertions\n\n*   `cy.getAllSessionStorage()` will only run assertions you have chained once, and will not [retry](/llm/markdown/app/core-concepts/retry-ability.md).\n\n### Timeouts\n\n*   `cy.getAllSessionStorage()` cannot time out.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/getallsessionstorage.json",
      "token_estimate": 47
    }
  ]
}