> For the complete documentation index, see [llms.txt](https://doc.sk5data.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sk5data.com/doc/zh/dynamic-residential/hui-hua-lei-xing.md).

# 会话类型

会话控制决定了您每次请求所使用的 IP 地址如何分配。我们提供**轮换会话**与**粘性会话**两种模式，以满足不同业务场景对 IP 切换频率的需求。

### 轮换会话

每次请求都会自动分配一个全新的住宅 IP。

* **核心优势**：高匿名性，有效规避目标站点的频率限制与封禁。
* **适用场景**：大规模数据抓取、搜索引擎结果采集、广告验证等无需保持会话状态的并发任务。

### 粘性会话

在预设的时间段内，您的多个请求将持续复用同一个住宅 IP 地址。

* **核心优势**：保持业务连续性，适用于需要登录、多步骤表单提交或购物车流程等场景。
* **适用场景**：社交媒体多账号管理、电商平台价格监控、需要维持登录状态的自动化操作。

**配置示例：**\
在用户名后添加 `-sid-会话标识-ttl-时长`，设置粘性会话。时长单位为分钟。

格式：用户名-sid-会话标识-ttl-时长

示例：GURXROr7-sid-Y-ttl-10（表示该会话内的 IP 将保持 10 分钟）

例如：

```
username-sid-Z-ttl-5:password
username-sid-5Is-ttl-60:password
username-sid-xpDfo9-ttl-120:password
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.sk5data.com/doc/zh/dynamic-residential/hui-hua-lei-xing.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
