From 89e311b12a7b1e2ff0d6b6fca140766f41197894 Mon Sep 17 00:00:00 2001 From: Aravind Karteek <99467993+aravindkarteekr@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:07:54 +0530 Subject: [PATCH] Update en-US.mdx There is an ambiguity in the tab or window description of session s storage. In general context a window can have multiple tabs, but window here refered to as browsing context --- .../en-US.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx b/questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx index 54dbd83..2ad718f 100644 --- a/questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx +++ b/questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx @@ -120,7 +120,7 @@ localStorage.clear(); - **Storage Capacity**: Typically around 5MB per origin (varies by browser). - **Lifespan**: Data in `sessionStorage` is cleared when the page session ends (i.e., when the browser or tab is closed). Reloading the page does not destroy data within `sessionStorage`. -- **Access**: Data is only accessible within the current tab or window. Different tabs or windows with the same page will have different `sessionStorage` objects. +- **Access**: "Data is accessible only within the current tab (or browsing context). Different tabs share different `sessionStorage` objects even if they belong to the same browser window." (In this context window refers to a browser window that could have multiple tabs). - **Security**: All JavaScript on the same page have access to values within `sessionStorage` for that page. ```js