Session Control

Establishing session

The session ID parameter allows you to keep the same IP address to run multiple requests. To reuse the same IP multiple times, use sessid parameter after username with randomly created alphanumeric string, for example, session-abcdef123456.

The standard session time is 5 minutes or up to 60s of inactivity (no requests). After that, a new IP address is assigned automatically. To adjust desired session time please refer to Session time

For example, your initial query with session-abcdef123456 assigned proxy IP address 1.1.1.1. As long as you keep sending new requests with the same session ID and that IP address is online and available, the system will route your queries through 1.1.1.1. If you stop sending requests for 60 seconds or the IP address is no longer online, the system will assign a new proxy IP. Your next query with session-abcdef123456 will be routed through a different IP address e.g. 1.1.1.2.

Credentials list example

Example represents a list of credentials that establish different sessions.

USERNAME-zone-adam-session-vtx8ty6jbayl:PASSWORD
USERNAME-zone-adam-session-rft8v5nkac39:PASSWORD
USERNAME-zone-adam-session-zq7q70siprgy:PASSWORD
USERNAME-zone-adam-session-5vez4aip1bpu:PASSWORD
USERNAME-zone-adam-session-riy98jftewmx:PASSWORD

Code example

In this example we are using Asia IP with session-abcdef123456 in the username with the first request. All following requests will keep the same Asia IP with further queries:

curl -x SERVERNAME.pyproxy.io:2510 -U "USERNAME-zone-adam-region-asia:PASSWORD" ipinfo.pyproxy.io

Session time

The sessTime parameter goes together with session, and allows you to prolong the session above 5 minutes or set a particular time for it. This parameter can be set for up to 120 minutes.

Session time parameter does not ensure that all your queries are finished by the end of the session. The session will expire within the time limit set, even if requests are not finished.

Credentials list example:

Example represents a list of credentials that establish different sessions with different session time (minutes).

USERNAME-zone-adam-session-vtx8ty6jbayl-sessTime-5:PASSWORD
USERNAME-zone-adam-session-rft8v5nkac39-sessTime-20:PASSWORD
USERNAME-zone-adam-session-zq7q70siprgy-sessTime-10:PASSWORD
USERNAME-zone-adam-session-5vez4aip1bpu-sessTime-30:PASSWORD
USERNAME-zone-adam-session-riy98jftewmx-sessTime-15:PASSWORD

Code example

We chose the same Asia IP as in the previous example, this time we are adding session string and sessTime parameter for 15 minutes:

curl -x SERVERNAME.pyproxy.io:2510 -U "USERNAME-zone-adam-region-asia-session-abcdef123456-sessTime-15:PASSWORD" ipinfo.pyproxy.io

Last updated