Самая большая ежегодная распродажа с невероятными предложениями и праздничными скидками!

Покупать пакет
Чем мы можем вам помочь?
naproxy

Руководство для пользователей

Расширенное руководство, понять, как NaProxy интегрирован с системами и программным обеспечением

naproxy By NaProxy

· 35 Статьи проекта

Session control
naproxy

By NaProxy

2024-11-20 16:44

After the expiration time is selected, random session ID characters are generated in the SESSION column, for example, SESSION

: dgjMiyFb0r so that requests can be made to leave Proxies as unchanged as possible. The following example shows how session control works:

 

Let's say you get the Proxies IP address as 1.2.3.4 with the initial query from session-eeutlDC

As long as you keep sending new requests using the same session ID, the system will return your queries to the same IP as possible via 1.2.3.4 routing.

 

Code example

If you want to request different IPs for multiple requests, you can either "enter any 4-12 digit or letter combination" or generate different session IDs by re-clicking on "Time". Here is an example of a session ID generated by re-clicking on "5 minutes time":

For example, if you change the SESSION to rO8a4OueD4, n3ptOBPCaE, uENYcdux9X, 49xFdgrcln, njL9mDT1Av......, etc., you will get different IPs with the code example below:

 

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

curl -x USERNAME_area-US_session-rO8a4OueD4_life-5:PASSWORD@us.naproxy.net:1234 https://api.ip.cc/

 

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

curl -x USERNAME_area-US_session-n3ptOBPCaE_life-5:PASSWORD@us.naproxy.net:1234 https://api.ip.cc/

 

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

curl -x USERNAME_area-US_session-n3ptOBPCaE_life-5:PASSWORD@us.naproxy.net:1234 https://api.ip.cc/

 

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

curl -x USERNAME_area-US_session-49xFdgrcln_life-5:PASSWORD@us.naproxy.net:1234 https://api.ip.cc/

 

The fifth njL9mDT1Av request will select the US IP, and subsequent new queries keep the same IP (session control):

curl -x USERNAME_area-US_session-njL9mDT1Av_life-5:PASSWORD@us.naproxy.net:1234 https://api.ip.cc/

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

The life parameter refers to the length of time that the Proxies IP will remain unchanged during its validity. For example, when life is set to 5 minutes, the Proxies IP will remain stable during those 5 minutes, allowing users to make continuous connections and data transfers. However, at the end of the 5 minutes, the IP will not expire, but will automatically switch to another valid IP, ensuring that the user maintains anonymity and security of the connection while continuing to use it.

 

(life: IP usage duration: Account-password authentication offers six IP rotation durations for you to choose from: “a new IP for each request, 5 minutes, 10 minutes, 30 minutes, 1 hour, 2 hours.” The shortest duration can be set to 5 minutes, and the longest to 2 hours, allowing you to choose based on your needs. API extraction supports customizable IP rotation durations, with a minimum of 1 minute and a maximum of 7200 minutes. You can set any duration between 1 and 7200 minutes according to your specific requirements.)

 

However, please note that the survival time of the IP determines whether the rotation length is valid or not. If the IP goes offline early within the set time, the set rotation length cannot be maintained.

To ensure connection stability, Proxy Services usually keep the Proxy IP unchanged for the duration of a session. Even when a Proxy IP is nearing the end of its life, the Proxy Service replaces it with a new Proxy IP well in advance to ensure session continuity and an uninterrupted user experience. This means that you get seamless connectivity even when the current Proxies IP is nearing the end of its life cycle.

 

Example:

curl -x USERNAME_area-US_session-njL9mDT1Av_life-5:PASSWORD@us.naproxy.net:1234 https://api.ip.cc/

This command will maintain the same Proxies IP with the specified session ID for the 5 minutes set in the life cycle. Even after the 5 minutes are over, the IP will not be invalidated and will automatically switch to another valid IP to provide a stable and continuous connection.

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

NaProxy
Свяжитесь со службой поддержки клиентов
NaProxy
Свяжитесь с нами по электронной почте
NaProxy