The Javascript console supports the concept of sessions. You can save the session with a name, close your browser, and later come back, reload the session and resume where you left off. When you save a session, the following pieces of information are saved:
- Console output
- Command history
- User-defined global variables
The following commands are used for session management:
- session.list(): Lists the saved sessions
- session.load(name): Loads the named session
- session.remove(name): Removes the named session
- session.removeAll(): Removes all saved sessions
- session.save(name): Saves the named session