# Rotating IPs and sticky sessions

Compare export options, duration, applicable tasks, and authentication for rotating and sticky sessions.

Rotation and stickiness are two session modes for account-secrecy authentication. API extracts do not provide these two parameters.

## Rotation mode

- Each new TCP connection is re-engaged in the exit selection.
- During connection reuse, the IP is not automatically changed because of the second HTTP request.
- Adjacent new connections may be selected to the same output.

## Sticky mode

- The full username contains the session parameters generated by the server.
- The same user name is kept exported for as long as possible, within the range of 1–180 minutes.
- The timeframe does not mean that the switching is forced at the expiration moment.

## Method of selection

- Selects stickiness to keep you logged in or in the shopping cart for a short period of time.
- A large number of independent requests for optional rotation.
- Independent sticky sessions use different configurations.

## Verification steps

1. The rotation mode initiates at least three new TCP requests in a row that explicitly close the connection reuse, recording the exit IP separately.
2. The sticky mode initiates multiple new connections using the same full username, and then repeats the test with a new session username.
3. The test time, session configuration and response status are also recorded, avoiding target limit errors being treated as export switching failures.

## Expected results

- The rotation mode re-engages each new connection in the selection, but adjacent connections are allowed to have the same output.
- (a) The viscous mode maintains the same output as possible for the duration of the configuration. Re-enter the scheduling after changing the session user name.

## Failure border

- A browser refresh or HTTP client connection pool may duplicate the same TCP connection and cannot be used to prove rotation failure.
- (a) The sticky-session duration is not an export survival commitment. Allows early switching in case of upstream unavailability, risk controls or network failure.
