Software & Applicationssoftware-and-applicationsBrowsers & Extensionsbrowsers-and-extensions

How To Get Session ID In Chrome

how-to-get-session-id-in-chrome

To get a session ID in Chrome, open Developer Tools, go to the Application tab, and inspect the cookies or session storage for the website you are currently visiting. This unique identifier, often stored as a cookie or in session storage, is crucial for debugging login issues, analyzing security, or understanding how a web application maintains your state.

How to get session id in Chrome with developer tools

The Developer Tools panel gives you direct access to all cookies a website sets, including the session ID. This is the most reliable method for web development debugging because it shows exactly what the server sent to your browser.

  1. Open Developer Tools by right-clicking anywhere on the page and selecting "Inspect," or use the keyboard shortcut Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).
  2. Once Developer Tools are open, navigate to the "Application" tab.
  3. In the "Application" tab, locate and expand the "Storage" section in the left sidebar.
  4. Under "Storage," click on "Cookies" to display the cookies set by the current website and its embedded resources.
  5. Select the domain you are interested in from the list. The session ID cookie is often named something like sessionid, PHPSESSID, or JSESSIONID.
  6. Click on the cookie to see its value in the "Value" column. This value is the session ID.

Finding the session id in session storage

Some websites may store session-related data in "Session Storage," which can be inspected under "Application > Storage > Session Storage." This is an alternative location where developers might store session tokens or state data that is not sent with every HTTP request. Using this section is particularly useful when a session ID is not visible in the cookies list.

  1. With Developer Tools open and the "Application" tab selected, expand the "Storage" section in the left sidebar if it isn't already.
  2. Click on "Session Storage" and then select the domain you are inspecting.
  3. Look through the key-value pairs. The session ID may be stored under a key like session, token, or sessionId.

Using the console to access session data

You can interact with sessionStorage directly from the "Console" tab in Developer Tools using JavaScript expressions. This method is ideal when you need to quickly extract a session ID programmatically or verify its value while debugging.

  1. Open Developer Tools and click on the "Console" tab.
  2. Type sessionStorage.getItem('sessionId') (replace 'sessionId' with the actual key name used by the website) and press Enter.
  3. The console will return the session ID value if it exists in session storage. You can also type sessionStorage to see all stored keys and values.

Sources

The steps on this page were checked against the following documentation. Last verified 17 September 2026.

  1. Consentik — https://consentik.com/how-to-view-cookies-in-chrome-browser/
  2. Chrome — https://developer.chrome.com/docs/devtools/application
  3. Google — https://privacysandbox.google.com/cookies/basics/cookie-tools
  4. Debugbear — https://www.debugbear.com/blog/use-chrome-devtools
  5. Chrome — https://developer.chrome.com/docs/devtools/storage/sessionstorage
  6. Chrome — https://developer.chrome.com/docs/devtools/application/cookies

About the author

Linnet Chan is a beacon of knowledge in the bustling tech hub of San Francisco, California. With her finger on the pulse of biometric technology, she navigates the intricate dance of advancement in the realm of personal security.

View all 72 articles by Linnet Chan  ·  Our editorial policy

Leave a Reply

Your email address will not be published. Required fields are marked *