Register for this year’s #ChromeDevSummit happening on Nov. 11-12 in San Francisco to learn about the latest features and tools coming to the Web. Request an invite on the Chrome Dev Summit 2019 website

View And Edit Session Storage With Chrome DevTools

This guide shows you how to use Chrome DevTools to view, edit, and delete sessionStorage key-value pairs.

View sessionStorage keys and values

  1. Click the Application tab to open the Application panel. The Manifest pane is shown by default.

    The Manifest pane
    Figure 1. The Manifest pane

  2. Expand the Session Storage menu.

    The Session Storage Menu
    Figure 2. The Session Storage menu shows two domains: https://developers.google.com and https://www.youtube.com

  3. Click a domain to view its key-value pairs.

    The sessionStorage key-value pairs for the https://www.youtube.com domain
    Figure 3. The sessionStorage key-value pairs for the https://www.youtube.com domain

  4. Click a row of the table to view the value in the viewer below the table.

    Viewing the value of the yt-remote-cast-available key
    Figure 4. Viewing the value of the yt-remote-cast-available key

Create a new sessionStorage key-value pair

  1. View a domain's sessionStorage key-value pairs.
  2. Double-click the empty part of the table. DevTools creates a new row and focuses your cursor in the Key column.

    The empty part of the table to double-click in order to create a new
             key-value pair
    Figure 5. The empty part of the table to double-click in order to create a new key-value pair

Edit sessionStorage keys or values

  1. View a domain's sessionStorage key-value pairs.
  2. Double-click a cell in the Key or Value column to edit that key or value.

    Editing a sessionStorage key
    Figure 6. Editing a sessionStorage key

Delete sessionStorage key-value pairs

  1. View a domain's sessionStorage key-value pairs.
  2. Click the key-value pair that you want to delete. DevTools highlights it blue to indicate that it's selected.

  3. Press the Delete key or click Delete Selected Delete Selected.

Delete all sessionStorage key-value pairs for a domain

  1. View a domain's sessionStorage key-value pairs.

  2. Click Clear All Clear All.

Interact with sessionStorage from the Console

Since you can run JavaScript in the Console, and since the Console has access to the page's JavaScript contexts, it's possible to interact with sessionStorage from the Console.

  1. Use the JavaScript contexts menu to change the JavaScript context of the Console if you want to access the sessionStorage key-value pairs of a domain other than the page you're on.

    Changing the JavaScript context of the Console
    Figure 7. Changing the JavaScript context of the Console

  2. Run your sessionStorage expressions in the Console, the same as you would in your JavaScript.

    Interacting with sessionStorage from the Console
    Figure 8. Interacting with sessionStorage from the Console

Feedback

Was this page helpful?
Yes
What was the best thing about this page?
It helped me complete my goal(s)
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
It had the information I needed
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
It had accurate information
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
It was easy to read
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
Something else
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
No
What was the worst thing about this page?
It didn't help me complete my goal(s)
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
It was missing information I needed
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
It had inaccurate information
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
It was hard to read
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.
Something else
Thank you for the feedback. If you have specific ideas on how to improve this page, please create an issue.