top
top
https10User Guide
https10
homeQuick Start
homeFAQ
homeUser Guide
Home
User Guide
Session Control
Session Control
2024-06-26

Enable session control by filling in the Session field with a string (custom setting), for example, session: a00001, so that requests can be made with as little change to the proxy as possible. The following example shows how session control works:

You got the proxy IP address 1.2.3.4 with the initial query of Session -a00001

As long as you keep sending new requests using the same session ID, the system will route your queries back to the same IPs as possible via 1.2.3.4.

code example

If you want to request different IPs for multiple requests, you can do so by changing the session ID.

For example, if you change the session to a00001, a00002, a00003, a00004, a00005, a00006 ......, etc., you will get a different IP, the code example is as follows:

The first a00001 request will select the US IP and subsequent new queries keep the same IP (session control):

curl -x pcc-A12345678_area-US_session-a00001_life-5:[email protected]:1234 https://api.ip.cc/

The second a00002 request will select the US IP and subsequent new queries will keep the same IP (session control):

curl -x pcc-A12345678_area-US_session-a00002_life-5:[email protected]:1234 https://api.ip.cc/

The third a00003 request will select the US IP and subsequent new queries will keep the same IP (session control):

curl -x pcc-A12345678_area-US_session-a00003_life-5:[email protected]:1234 https://api.ip.cc/

The fourth a00004 request will select the US IP and subsequent new queries will keep the same IP (session control):

curl -x pcc-A12345678_area-US_session-a00004_life-5:[email protected]:1234 https://api.ip.cc/

In addition, the life and session parameters need to be used in conjunction to ensure optimal proxy performance and stability.

The life parameter refers to the total usage time of a proxy IP. Within this time frame, the Proxy IP is valid for connection and data transfer. For example, a proxy IP may have a life cycle of 5 minutes. This means that the IP is valid and available during these 5 minutes. (life: the length of time the IP is available in minutes, the minimum value of life provided by PROXY.CC is 1 and the maximum value is 120 (2 hours))

To ensure connection stability, the https://proxy.cc system usually keeps the proxy IP unchanged during a session. Even if the proxy IP is nearing the end of its life, the system replaces it with a new proxy IP well in advance to ensure session continuity and an uninterrupted user experience. This means you get seamless connectivity, even when the current proxy IP is nearing the end of its life.

Example:

curl -x pcc-A12345678_area-US_session-a00004_life-5:[email protected]:1234 https://api.ip.cc

This command will provide stable and continuous connectivity by maintaining the same proxy IP with the specified session ID for the 5-minute life period.

By setting the life and session parameters appropriately, you can optimise the use of the proxy for your specific needs, ensuring the best balance between data transfer and connection stability.