> For the complete documentation index, see [llms.txt](https://docs.dataimpulse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataimpulse.com/dataimpulse-documentation-zh-cn/dai-li/can-shu/hui-hua-id.md).

# 会话 ID

了解如何在 DataImpulse 代理中使用 session-id 参数，以保持粘性会话，并在多次连续请求中保持相同 IP。

`sessid` - 连接到特定 IP 地址 30 分钟。对于 `sessid`的值可以是任何字符串或数字。

这不是 Sticky 代理的替代品，而是在你想要在平均 30 分钟内连接到特定 IP 地址时的另一种选择。

{% hint style="info" %}
真实用户提供住宅 IP，如果您使用的 IP 提供者离线，您的 IP 将自动替换为另一个可用的 IP。
{% endhint %}

**示例：**

```
curl -x "http://login__cr.au;sessid.123:password@gw.dataimpulse.com:823" https://api.ipify.org/
```

使用 `__cr.au;sessid.123` 表示客户端希望连接到在澳大利亚标记为 123 的 IP 地址（例如，IP 154.6.151.212）。

```
curl -x "http://login__cr.au;sessid.45:password@gw.dataimpulse.com:823" https://api.ipify.org/
```

类似地， `cr.au;sessid.45` 表示客户端请求位于澳大利亚并标记为 45 的 IP 地址（例如，IP 38.55.106.76）。

当您通过连接到代理时 `__cr.au;sessid.123` 在整个 30 分钟期间您将始终被分配到 IP 地址 154.6.151.212。同样，使用连接时 `__cr.au;sessid.45` 将导致分配到 IP 地址 38.55.106.76。

{% hint style="info" %}
确保在设置中将端口指定为 Socks5 的 824 或 HTTPS 的 823。
{% endhint %}

<br>


---

# 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://docs.dataimpulse.com/dataimpulse-documentation-zh-cn/dai-li/can-shu/hui-hua-id.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.
