BuyProxy logo
Log inSign up

Concepts

Sticky sessions

A sticky session pins your traffic to a single residential IP for as long as the session stays active, identified by a session ID you pass with each request.

us-sticky-sess_9f2a1c.buyproxy.org:7000

Setting session duration

Sessions default to a 10 minute lifetime, configurable up to 30 minutes per request:

const session = await client.sessions.create({
  type: "sticky",
  duration: 1800,
});

Session expiration

Once a sticky session expires, the next request with that session ID is assigned a fresh IP automatically — no error is thrown, so design your retry logic accordingly.

Was this page helpful?