# Session 管理

Session，即会话，是指在指定的时间段内在您的网站/H5/小程序/APP上发生的一系列用户行为。例如，一次会话可以包含多个页面浏览、交互事件和电子商务交易。

传统分析工具中，通常进行类似如下的定义：

> **iOS应用**：用户屏熄、home键到切换后台、杀掉进程即视为会话结束；
>
> **Android应用**：用户杀掉进程视为会话结束，屏熄、按home键超过30秒，也会视为会话结束。
>
> **H5/Web应用**：用户从打开网页到离开视为一次会话，包括关闭整个浏览器、30分钟未进行新打开页面、触发事件等活动。如果一次访问跨天的话，会被切割成两次会话。

但因为不同的应用有不同的分析场景，如果使用统一的标准，会无法满足，所以方舟支持自定义Session口径，通过事件、跨天等等来进行切割，同时能够满足传统的定义方法。

![](/files/-LoVX-xLYRtXzisLoHxV)

Session管理功能，用来创建Session口径和管理已完成创建的Session口径。

## 1 Session 解析

Session相当于一个容器，其中包含了一系列符合 Session 口径的用户行为；一个用户可以有多个 Session，一个 Session 可以有很多行为。

这些 Session 可能发生在同一天，也可能发生在几天、几周或几个月内。一个 Session 结束后，就可以开始新的Session。

Session 结束的方式分为以下3种：

* 跨天
* 超时，例如，不活动状态超过 30 分钟
* 指定事件，例如，支付成功

## 2 创建 Session 口径

点击右上角的创建 Session 口径，出现如下界面：

![](/files/-LoVX3Ntzvdam3fL4ITz)

使用者可根据需求，设定不同的 Session 口径，在易观方舟中，Session 可以排除一些不重要的事件，不参与计算。

**名称：**&#x53;ession 口径的名称。

**排除的事件：**&#x4E0D;计入 Session 的计算，排除的事件不会增加该 Session 的数量和时长指标。

**到点切割：** 设定 Session 结束方式中的跨天结束，目前支持北京时间 00:00:00；计划支持到任意时区任意时间切割，结束 Session。

**超时切割：** 设定 Session 结束方式中的超时结束，目前支持的时间范围为 5 分钟 \~ 5 小时。（这里只 Session 口径中相邻两个事件的时间间隔，不是整个Session的时间范围，即Session的时长可能由于一直发生用户行为而超过 5 个小时）

**指定事件切割：**&#x8BBE;定 Session 结束方式中的指定事件结束。通常设定转化目标，如，注册成功、支付成功等。

对已经生成的 Session 口径，可以进行 3 个操作：另存为、编辑和删除。

## 3 管理 Session 口径

修改和删除

![](/files/-LoVX7TBULvcjZ7G4qcs)

## 4 Session的使用

创建好 Session 规则后，就可以在分析过程中，使用不同的规则，分析指标了，详见使用说明阅读[《Session 分析》](/features/analytics/session.md)

![](/files/-LoVXEjf9xRrMZDkSbiV)

{% hint style="info" %}
以上内容没有解答我的问题？[点击我来反馈](https://support.qq.com/products/118522/) 🚀
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arkdocs.analysys.cn/features/project-manegement/meta-data/session.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
