Sesión sticky
Una sesión de proxy que mantiene la misma dirección IP durante una ventana de tiempo definida en lugar de rotar en cada solicitud.
Una sesión sticky fija tu conexión a una sola IP durante el tiempo que elijas - con nosotros treinta segundos, quince minutos o una hora. Cada solicitud que envías durante esa ventana sale desde la misma IP, haciendo que tu tráfico parezca una única sesión de usuario.
Los sitios con flujos de inicio de sesión, carritos de compra o paginación dependen de la continuidad de la sesión. Si tu IP cambia a mitad de sesión, el sitio puede cerrar tu sesión, vaciar tu carrito o empezar a devolver páginas vacías. Las sesiones sticky lo evitan.
Las sesiones sticky se configuran en el parámetro de nombre de usuario del proxy. La mayoría de los proveedores usan un sufijo con un ID de sesión o una duración añadido al nombre de usuario. El gateway enruta todas las solicitudes con ese ID de sesión por la misma IP hasta que expira la ventana.
La contrapartida: una sesión sticky más larga usa una IP para más solicitudes, lo que aumenta la probabilidad de que esa IP se marque por comportamiento sospechoso si el sitio monitorea la tasa de solicitudes por IP. Para objetivos agresivos, usa la ventana de treinta segundos y restablece la sesión entre pasos de la tarea.
Cuando una sesión sticky expira, el gateway asigna una nueva IP automáticamente. No necesitas reconectarte ni reconfigurar nada - la siguiente solicitud simplemente obtiene una IP nueva.
Holding one exit on purpose
A sticky session pins your traffic to a single exit address for a defined period. The provider records the association between your session identifier and the device that answered first, then routes everything carrying that identifier to the same place until the clock runs out.
The lifetime is a ceiling, not a guarantee. On residential exits the device belongs to somebody else, and when their connection drops the session ends early no matter what you asked for.
Sticky sessions exist because many tasks span several requests: a login and the redirect after it, a checkout, a search followed by a detail page. Rotating in the middle of those makes the site see two different visitors sharing one session cookie.
Three lifetimes and one identifier
You choose both the identifier and how long it holds. The identifier is any number you like:
Sticky syntax
login_c_US_s_42_ttl_30s half a minute
login_c_US_s_42_ttl_15m fifteen minutes
login_c_US_s_42_ttl_1h one hour, our maximum
# Different numbers mean different exits running in parallel:
login_c_US_s_1_ttl_15m ... login_c_US_s_200_ttl_15m- Pick the shortest lifetime that covers your task. Holding an exit longer than needed reduces the pool available to your other sessions.
- One hour is the ceiling because a residential device that stays online longer is the exception. Anything that must never change belongs on an ISP address.
- Use a different number per worker, profile or account. Two workers on one identifier share an exit and their behaviour merges.
- Handle the case where the session dies early. A retry that re-establishes the session is the difference between a robust job and a fragile one.
Misreadings of stickiness
Sticky is not static
It is a temporary lease on a rotating pool. Static addresses are a different product with a different price model.
The identifier is not a password
It only groups your own traffic. Anyone else using your login and the same number is you as far as the gateway is concerned.
Longer is not safer
A device that has been proxying for an hour is more likely to drop in the next minute than one that just came online.
It does not survive a client restart
The identifier does, the device may not. Expect a new address after a long pause.
Choosing a lifetime
Four options, counting the one where you ask for nothing. Pick the shortest that covers the task in front of you.
| What you append | How long it holds | Task it fits | What ends it early |
|---|---|---|---|
| nothing | no hold at all, a new exit per connection | listings, prices, search results | not applicable |
| _s_42_ttl_30s | half a minute | a login and the redirect that follows it | the device dropping offline |
| _s_42_ttl_15m | fifteen minutes | a checkout or a multi-step form | the device dropping offline |
| _s_42_ttl_1h | one hour, our ceiling | warming an account, long session work | the device dropping offline, most likely of the four |
The number after _s_ is yours to choose and it is what separates parallel sessions. Two workers sharing one number share one exit, and the site sees their behaviour as a single person doing two things at once.
Questions people actually type
What is a sticky session?
An instruction to the gateway to keep sending your traffic out through the same address for a set period, instead of picking a new exit on every connection.
How do I set one?
Append it to the username, not the host. login_c_US_s_42_ttl_15m holds one United States exit for fifteen minutes under session number 42. The password and the endpoint never change.
How long can a session last?
One hour with us. The ceiling is not a licensing limit, it is what residential devices actually do: they belong to people who close laptops and leave home networks, and an exit held for an hour is more likely to vanish in the next minute than one that just came online.
Is the lifetime guaranteed?
No, and treat any provider promising otherwise with suspicion. The lifetime is a ceiling. Write the retry that re-establishes the session, because that is the difference between a job that survives the night and one that does not.
Can I run many sticky sessions at once?
Yes, that is what the session number is for. Give each worker, browser profile or account its own number and they get separate exits in parallel. Reusing a number across workers merges their behaviour onto one address.
Sticky session or a dedicated address?
A sticky session is a temporary lease on a rotating pool, and it ends. If the address must never change, for an account you intend to keep, buy an ISP or datacenter address instead. Different product, different price model.
Términos relacionados
Ver esto en práctica
¿Listo para usar sesión sticky?
SotaProxy te da acceso a proxies residenciales rotativos, móviles, de centro de datos e ISP. Sin compromiso mínimo.
Empezar