Method Signature
Parameters
Session configuration options
Returns
The created execution session with all sandbox methods bound to this session
Example
Example: Multiple Isolated Sessions
Example: Session with Cleanup
Notes
- Sessions maintain independent shell state (environment variables, working directory)
- Environment variables set in one session don’t affect others
- Each session has its own command history
- Sessions persist until explicitly deleted or the sandbox is destroyed
- The sandbox automatically creates a default session for non-session methods
- Use sessions for multi-tenant scenarios or parallel workflows
- Session operations are isolated but share the same filesystem
See Also
- deleteSession - Delete a session
- listSessions - List all sessions (if implemented)
- Sessions Guide - Learn about session management