Session Control

Session control types include rotating session and sticky session.

Rotating session:

When configured:

• Dynamic IP Allocation: Assigns a new residential IP for every request

• Ideal for: High-anonymity use cases (e.g., anti-association analysis)

Configuration Rules:

● No session ID parameters required

● Enable Rotating Mode in the Endpoint Generator for immediate effect

Sticky 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, sessid-abc123.

The sesstime parameter goes together with sessid, and allows you to prolong the session above 10 minutes or set a particular time for it.for example,sessid-abc123-sesstime-10.The maximum session duration is 90 minutes. The system will automatically rotate your IP once the preset time expires or if the IP becomes invalid.

The standard session time is 10 minutes or up to 90s of inactivity (no requests). After that, a new IP address is assigned automatically.

For example, your initial query with sessid-abcde12345 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 sessid-abcde12345 will be routed through a different IP address e.g. 1.1.1.2.

Example represents a list of credentials that establish different sessions.

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 We are using a US IP with sessid string and sesstime (10 minutes) in the username with the first request . All following requests will keep the same USA IP with further querieswe are adding

curl -x "https://td-customer-USERNAME-country-us-sessid-a123123-sesstime-10:[email protected]:9999" "https://ipinfo.thordata.com"

Last updated

Was this helpful?