# Set up sticky sessions

Set a sticky session duration of 1–180 minutes and keep parallel proxy sessions separate.

These steps apply to rotating residential proxies. For a static proxy, use the endpoint and credentials assigned to that instance. See [Buy and connect to static residential proxies](/en/help/getting-started/static-residential-quickstart).

Use a sticky session when a short-running task needs to keep the same exit IP where possible. Sticky sessions use username and password authentication and support a duration of 1–180 minutes.

## Generate a sticky configuration

1. In Proxy Setup, choose a location and protocol, then select **Sticky**.
2. Enter a duration in minutes and generate the proxy configuration.
3. Copy the entire username, including the session parameters generated by the Console.

## Keep sessions separate

- Reuse the same full username throughout one task.
- Use a separate configuration for each parallel task.
- Editing the session ID, region, duration, or signature manually can cause authentication to fail.

## Understand session duration

The duration is the longest window for keeping the exit IP. An unhealthy exit node or network interruption can change the IP sooner. Reaching the end of the window does not force an immediate IP change.

## Verify the session

- Make multiple requests with the same configuration during the session window and check the exit IP.
- If the IP changes unexpectedly, record the time, configuration reference, and a redacted result.
