> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browser-use.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Follow-up tasks

> Run multiple tasks in the same browser session.

When you pass a `session_id`, the session automatically stays alive between tasks. Each task runs a new agent that reuses the same browser — the agents don't share context, but the browser state (page, cookies, tabs) carries over.

<CodeGroup>
  ```python Python theme={null}
  from browser_use_sdk.v3 import AsyncBrowserUse

  client = AsyncBrowserUse()

  # Create a session, then run tasks inside it
  session = await client.sessions.create()

  result1 = await client.run(
      "Go to amazon.com, search for laptops, and open the first result",
      session_id=session.id,
  )
  result2 = await client.run(
      "Extract the customer reviews",
      session_id=session.id,
  )

  await client.sessions.stop(session.id)
  ```

  ```typescript TypeScript theme={null}
  import { BrowserUse } from "browser-use-sdk/v3";

  const client = new BrowserUse();

  // Create a session, then run tasks inside it
  const session = await client.sessions.create();

  const result1 = await client.run("Go to amazon.com, search for laptops, and open the first result", {
    sessionId: session.id,
  });
  const result2 = await client.run("Extract the customer reviews", {
    sessionId: session.id,
  });

  await client.sessions.stop(session.id);
  ```
</CodeGroup>

`sessions.create()` returns a `live_url` you can embed to watch each task execute — see [Live preview](/cloud/browser/live-preview). To stream messages as each task runs, use `client.run()` with `for await` — see [Live messages](/cloud/agent/streaming).

<Note>
  Sessions time out after 15 minutes of inactivity by default. The maximum session duration is 4 hours.
</Note>
