> For the complete documentation index, see [llms.txt](https://docs.talordata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talordata.com/cn-tw/proxy/mobile-proxies/advanced-features/sessions.md).

# 會話管理

會話管理控制代理 IP 的更換頻率，直接影響帳號安全、爬蟲效率及業務穩定性。移動代理支持兩種會話模式：**輪換會話**與**粘性會話**。

{% hint style="warning" icon="lightbulb-exclamation-on" %}
請將 <mark style="color:$primary;">`username:password`</mark> 和 <mark style="color:$primary;">`host:port`</mark> 替換為您的真實憑證
{% endhint %}

***

### 輪換會話

無需額外參數，每次請求自動更換 IP。

**示例：**

```http
curl -x host:port -U "username-zone-roam-region-uk:password" ipinfo.io
```

### 粘性會話

在指定時間內（1-120分鐘）保持同一 IP 不變。

**示例：**

```http
curl -x host:port -U "username-zone-roam-region-uk-session-4452cc881deb-sesstime-10:password" ipinfo.io
```

<table><thead><tr><th width="125">字段</th><th>說明</th></tr></thead><tbody><tr><td>session</td><td>固定前綴，表示啟用粘性會話。</td></tr><tr><td>會話標識</td><td>任意字符串（如 <code>4452cc881deb</code>）。同一標識的請求將被分配到相同 IP。</td></tr><tr><td>sesstime</td><td>固定前綴，指定粘性時長</td></tr><tr><td>分鐘數</td><td>1–120 之間的整數（如 <code>10</code>），表示 IP 保持不變的分鐘數。超時後 IP 可能更換。</td></tr></tbody></table>
