Session Control
Learn how to manage Mobile Proxy sessions to keep the same IP address across multiple requests and control session length and IP rotation.
Set up a default session
The sessid parameter lets you route several requests through the same IP address. Add sessid after your username with a randomly generated alphanumeric string, for example sessid-abcd1234.
For example, an initial request using sessid-abcd1234 might be assigned the IP 1.1.1.1. As long as you keep sending requests with the same session ID and that IP stays online, your queries continue to route through 1.1.1.1. If you pause for 60 seconds or the IP goes offline, the system assigns a new one, so your next request with sessid-abcd1234 is routed through a different IP, such as 1.1.1.2.
By default, a session lasts 10 minutes, or ends after 60 seconds without any requests – whichever comes first. Once that happens, a new IP address is assigned automatically. To change the session length, please refer to Extend session duration.
Credentials list example:
Example represents a list of credentials that establish different sessions.
Code example
In this example we are using German IP with sessid-abcd1234 in the username with the first request. All following requests will keep the same German IP with further queries:
Extend session duration
The sesstime parameter is used together with sessid to keep a session running longer than the default 10 minutes or up to 60 seconds of inactivity (no requests).
Note: You can use the sesstime parameter to maintain the same IP for up to 1440 minutes (24 hours).
However, because the mobile proxy pool is dynamic, your connection may end sooner. If that happens, start a session with a new session parameter.
Disclaimer: The session time parameter does not guarantee that all of your requests finish before the session ends. The session expires once the time limit is reached, even if some requests are still in progress.
Credentials list example:
Example represents a list of credentials that establish different sessions with different sessions time (minutes).
Code example
We chose the same German IP as in the previous example, this time we are adding sessidstring and sesstime parameter for 7 minutes:
To set up sticky proxy entry nodes, learn more here.
Control session IP rotation
The sessid_oneip parameter is an alternative to sessid for cases where you must keep the exact same IP for the entire session.
With a regular sessid, if the assigned exit node goes offline before the session time expires, the system automatically assigns a new IP and your session continues. With sessid_oneip, the session is bound to a single exit node: once that IP is no longer available, instead of rotating to a new one, the request fails with an HTTP 502 response. At that point, start a new session with a fresh sessid_oneip value. sessid_oneip can be combined with sesstime in the same way as sessid.
Note: sessid_oneip is an optional alternative to sessid. The default sessid behavior (automatic rotation to a new IP when the exit node expires) is unchanged.
Credentials list example:
The following credentials each establish a separate single-IP session, with a different country and session time:
Code example
This example uses a German (DE) IP with sessid_oneip-qwert and a sesstime of 10 minutes. The IP stays fixed for the session; if it becomes unavailable, the request returns HTTP 502 instead of rotating:
To use another language, take any sessid sample from the sections above and replace sessid with sessid_oneip in the login string.
Last updated
Was this helpful?

