{
  "doc": {
    "id": "api/commands/getallsessionstorage",
    "title": "getAllSessionStorage | Cypress Documentation",
    "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": "a8fd16711bdda4c7b5645b9717e588ae99ec2470",
    "updated_at": "2026-05-18T17:21:32.047Z",
    "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-learn-about-subject-management",
        "text": "Yields Learn about subject management",
        "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-learn-about-chaining-commands",
        "text": "Requirements Learn about chaining commands",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#assertions-learn-about-assertions",
        "text": "Assertions Learn about assertions",
        "level": 3
      },
      {
        "id": "api/commands/getallsessionstorage#timeouts-learn-about-timeouts",
        "text": "Timeouts Learn about 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 [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\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": 151
    },
    {
      "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-learn-about-subject-management",
      "doc_id": "api/commands/getallsessionstorage",
      "heading": "Yields Learn about subject management",
      "heading_level": 3,
      "content_markdown": "### Yields [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\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-learn-about-subject-management"
      ],
      "path": "/llm/json/chunked/api/commands/getallsessionstorage.json",
      "token_estimate": 77
    },
    {
      "id": "api/commands/getallsessionstorage#rules",
      "doc_id": "api/commands/getallsessionstorage",
      "heading": "Rules",
      "heading_level": 2,
      "content_markdown": "## Rules\n\n### Requirements [Learn about chaining commands](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Chains-of-Commands)\n\n*   `cy.getAllSessionStorage()` requires being chained off of `cy`.\n\n### Assertions [Learn about assertions](/llm/markdown/app/core-concepts/introduction-to-cypress.md#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 [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `cy.getAllSessionStorage()` cannot time out.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/getallsessionstorage.json",
      "token_estimate": 60
    }
  ]
}