Session Control

Adding the sessid parameter with a session ID string, for example, sessid-abc12345, to the user name enables session control. The proxy is not changed with the following requests and the session does not expire. The example below shows how session control works:

  • Your initial query with sessid-random123 got assigned proxy IP address 1.1.1.1

  • As long as you keep sending new requests with the same session ID, the system will route your queries through 1.1.1.1

Credentials list example:

Example represents a list of credentials that establish different sessions.

customer-USERNAME-sessid-iqwcp:PASSWORD
customer-USERNAME-sessid-tevab:PASSWORD
customer-USERNAME-sessid-6drwn:PASSWORD
customer-USERNAME-sessid-7eh7g:PASSWORD
customer-USERNAME-sessid-z7cao:PASSWORD

Code examples

German IP is chosen for the first request, and then the same IP is kept with new queries (session control):

curl -x dc.de-pr.oxylabs.io:40000 -U "customer-USERNAME-sessid-abcde12345:PASSWORD" https://ip.oxylabs.io/location

Last updated