> For the complete documentation index, see [llms.txt](https://docs.marsproxies.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.marsproxies.com/marsproxies-documentation/overview/residential-proxies/proxy/rotation.md).

# Rotation

MarsProxies residential proxies support two session rotation modes: **Sticky** and **Randomize**. Each mode is designed for different use cases, so you can choose the one that best fits your workflow.

### Sticky

Sticky sessions let you hold onto the same proxy IP for a set period of time. This is useful when your task requires a continuous connection from the same address — for example, when interacting with websites that use session-based authentication or track your activity across multiple requests.

Two parameters control how sticky sessions work:

* **`_session-`** — Tells the routing system to create or maintain a specific session. The value must be a random alphanumeric string that is **exactly 8 characters long**, which guarantees each session is unique.
* **`_lifetime-`** — Sets how long the session stays active. The minimum is **1 second** and the maximum is **7 days**. Keep in mind that only a single time unit can be specified per value.

**Example:**

```
ultra.marsproxies.com:44443:username123:password123_country-br_session-fsiwjtqc_lifetime-10m
```

### Randomize

With randomized rotation, a fresh proxy IP is assigned on every request. This makes it the ideal choice for tasks that demand a high degree of anonymity, such as web scraping or browsing without a traceable pattern.

No additional parameters are needed in your proxy string to use this mode — it works out of the box.

{% hint style="info" %}
To reduce IP rotation frequency and improve proxy performance, add the `_forcerandom-1` tag to your proxy string. This expands the pool of available IPs to select from.
{% endhint %}
