Session Management
Reusing Sessions
To optimize your costs, consider reusing browser sessions since there is a one-minute minimum billing period for each session creation. For short tasks, reusing sessions helps avoid multiple minimum charges. For longer workflows, you can disconnect and reconnect to the same session as needed, maintaining efficiency while managing resource usage. To reuse a session:- Store the session ID from your initial session creation
-
Use the
sessionId
query parameter when connecting to specify the existing session - Continue using the same session for similar workloads