After selecting the expiration time, a session ID character will be randomly generated in the "Session" box. For example, Session:HkpQcVhdYc. This helps to ensure that the proxy used in requests remains unchanged as much as possible. The following example illustrates how session control works:
For example, if your initial query with the session ID "session-HkpQcVhdYc" obtains a proxy IP address of 1.2.3.4.
As long as you keep sending new requests using the same session ID, the system will route your queries through 1.2.3.4 and return the same IP address as much as possible.
Code example
If you want different IP addresses for multiple requests, you can "enter any combination of 4 to 12 digits or letters", or achieve this by re-clicking the "Time" button to generate different session IDs. Here, we take the session ID generated by re-clicking the "5 minutes" option as an example:
The first request with HkpQcVhdYc will choose a US IP, and subsequent queries will maintain the same IP (session control):
curl -x USERNAME_area-US_session-HkpQcVhdYc_life-5:PASSWORD@gw.aproxy.com:2312 https://api.ip.cc/
In addition, the two parameters, "life" and "session", need to be used in conjunction to ensure optimal proxy performance and stability.
The "life" parameter refers to the length of time during which the proxy IP remains unchanged within the valid period of the proxy IP. For example, when the "life" is set to 5 minutes, the proxy IP will remain stable within these 5 minutes.
However, please note that the survival time of the IP determines whether the rotation duration is valid. If the IP goes offline prematurely within the set time, the set rotation duration cannot be maintained.