How Sticky Sessions Work
When you add a session ID to your residential proxy credentials (_session-ID in the password on Light and Basic, -session-ID in the username on Advanced), ZentisLabs pins that session to a specific IP address. All subsequent requests with the same session ID will use the same IP for the duration of the TTL (time-to-live). Use letters and digits for session IDs. Sticky lines generated in the dashboard or API may use a single gateway IP instead of the hostname so the exit IP stays the same; use them as-is.
First Request
IP assigned and pinned to your session ID
Subsequent Requests
Same session ID → same IP address
TTL Expires
After TTL, new IP assigned on next request
| Proxy Type | Session Length | How to Set It |
|---|---|---|
| Residential - Light | No length parameter | _session-ID in the password |
| Residential - Basic | _lifetime-30m (minutes) | In the password, after _session-ID |
| Residential - Advanced | -sessionduration-30 (minutes) | In the username, after -session-ID |
| Mobile | Up to 4 hours | Chosen in the dashboard when you generate a Sticky line |
| ISP | Permanent | Static IP, never rotates |
| Datacenter | - | Choose Sticky when you generate |