session Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ✔
Manage browser sessions, cookies, cache, proxy settings, etc.Process: MainThe session module can be used to create new Session objects.You can also access the session of existing pages by using the session property of WebContents, or from the session module.
Static members
| Static member |
Description
|
Full Usage:
session.defaultSession
|
A Session object, the default session object of the app. |
|
A session instance from partition string. When there is an existing Session with the same partition, it will be returned; otherwise a new Session instance will be created with options.If partition starts with persist:, the page will use a persistent session available to all pages in the app with the same partition. if there is no persist: prefix, the page will use an in-memory session. If the partition is empty then default session of the app will be returned.To create a Session with options, you have to ensure the Session with the partition has never been used before. There is no way to change the options of an existing Session object.
|
|
A session instance from the absolute path as specified by the path string. When there is an existing Session with the same absolute path, it will be returned; otherwise a new Session instance will be created with options. The call will throw an error if the path is not an absolute path. Additionally, an error will be thrown if an empty string is provided.To create a Session with options, you have to ensure the Session with the path has never been used before. There is no way to change the options of an existing Session object.
|
fable-electron-docs-api