DocsHTTP Clienthttp_session_close

http_session_close

Http Session Close

Close and destroy an HTTP session, freeing all stored cookies and resources. The session_id becomes invalid after this call.

Usage Example

1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.http_session_close(
session_id="value"
)

Parameters

Required

session_idstringrequired

The session ID to close and destroy.

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}