Skip to content

Commit 6a3df8c

Browse files
authored
Update sessionStorage access description for clarity
Clarified the explanation of sessionStorage access in the documentation.
1 parent 159a798 commit 6a3df8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

questions/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ localStorage.clear();
120120

121121
- **Storage Capacity**: Typically around 5MB per origin (varies by browser).
122122
- **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`.
123-
- **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).
123+
- **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 can contain multiple tabs.
124124
- **Security**: All JavaScript on the same page have access to values within `sessionStorage` for that page.
125125

126126
```js

0 commit comments

Comments
 (0)