Session Control

Session control types include rotating session and sticky session.

Rotate session:

If you want to get a new IP on every request, you can switch the Session settings to rotation mode in the endpoint generator and use it.

Sticky session:

If you want to reserve the same IP address for a certain period of time to run multiple requests, you can switch the Session settings to sticky mode in the endpoint generator and set the duration or use the sessid parameter + a randomly created alphanumeric after the username String + sesstime parameter + set duration (minutes), for example, set the sticky mode duration to 10 minutes: sessid-a123123-sesstime-10.

For example, if you query sessid-a123123-sesstime-10 and it is assigned to the proxy IP address 1.1.1.1, as long as you keep using the same sessid-a123123-sesstime-10 to send requests and the IP address is available online, the proxy IP address you request will not change. . When the session time exceeds the set 10 minutes, your next request at sessid-a12123-sesstime-10 will be assigned a different proxy IP address, such as 1.1.1.2.

Please note: We currently support setting a maximum session duration of 90 minutes.

You can also set multiple different session proxy addresses, such as:

user-USERNAME-sessid-a234234-sesstime-15:PASSWORD
user-USERNAME-sessid-a345345-sesstime-30:PASSWORD
user-USERNAME-sessid-a456456-sesstime-45:PASSWORD
user-USERNAME-sessid-a567567-sesstime-90:PASSWORD

Code example:

sessid-a123123-sesstime-10 In this example, the same US IP as the first request is used, and the duration is 10 minutes

curl -x t.pr.thordata.net:12233 -U "user-USERNAME-region-US-sessid-a123123-sesstime-10:PASSWORD" ipinfo.thordata.com

Last updated