doc: clarify Web Storage behavior

Affected URL(s)

https://nodejs.org/api/globals.html, https://nodejs.org/api/cli.html

Description of the problem

I think that we should clarify some behaviors of Web Storage in Node.js vs. browsers.

  • Session storage and local storage are both scoped to the current process (not individual users or server requests). This is important for applications like server side rendering.
  • Local storage uses the value of --localstorage-file as its origin.

Other things that would be good to note:

  • Local storage files can be accessed by multiple processes simultaneously.
  • The local storage quota is also 10MB. This is noted for session storage.

For reference, here are the Deno docs on Web Storage.