# Session Control

Establishing a Session

The session ID parameter allows you to retain the same IP address to run multiple requests. To reuse the same IP multiple times, append a randomly created alphanumeric string to the sessid parameter, such as sessid-abcde12345.



Session Control

The default session time for an IP address is 15 minutes, but our IP supports any time duration from 1 to 120 minutes, and a new IP address will be automatically assigned based on the time duration you set. To adjust the desired session time, see Session Time.

For example, your initial query for sessid-abcde12345 is assigned a proxy IP address, 1.1.1.1. As long as you continue to send new requests with the same session ID, and that IP address is online and available, the system will route through 1.1.1.1. If the time you set expires, the system will assign a new proxy IP. Your next query for sessid-abcde12345 will be routed through a different IP address, such as 1.1.1.2.

Example of a credential list:

The examples represent a list of credentials for establishing different sessions.

```
USERNAME-zone-custom-sessid-pULIq4Wu-sessTime-15:PASSWORD
USERNAME-zone-custom-sessid-874rert-sessTime-15:PASSWORD
USERNAME-zone-custom-sessid-ZwAx7TYb-sessTime-15:PASSWORD
USERNAME-zone-custom-sessid-87ddsr-sessTime-15:PASSWORD
USERNAME-zone-custom-sessid-p7dfqwq-sessTime-15:PASSWORD
```

Code Sample

sessid-abcde12345 In this example, we use the German IP in the username in the first request. All subsequent requests will use the same German IP on further queries:

```
curl -x as.proxys5.net:6200 -U "USERNAME-zone-custom-region-DE-sessid-abc12345:PASSWORD" ipinfo.io
```

####

Session time

The sesstime parameter, when used in conjunction with sessid, allows you to set a specific time to extend the session by 1-120 minutes.

The session time parameter cannot guarantee that all your queries will be completed at the end of the session. Even if the request is not completed, the session will expire within the set time limit.



Example of a credential list:

The example indicates establishing a credential list for different sessions with different session times (minutes).

```
USERNAME-zone-custom-sessid-pULIq4Wu-sessTime-15:PASSWORD
customer-USERNAME-sessid-tevab-sesstime-12:PASSWORD
customer-USERNAME-sessid-6drwn-sesstime-30:PASSWORD
customer-USERNAME-sessid-7eh7g-sesstime-6:PASSWORD
customer-USERNAME-sessid-z7cao-sesstime-16:PASSWORD
```



Code Sample

We select the same German IP as in the previous example, this time we add a 7 minute sessid string and parameter: sesstime

```
curl -x as.proxys5.net:6200 -U "USERNAME-zone-custom-region-DE-sessid-abc12345-sessTime-15:PASSWORD" ipinfo.io
```
