# 会话超时

**URL:** https://meta.discourse.org/t/session-timeout/34686
**Category:** Data & reporting
**Created:** [2015年十月19日 19:26 UTC](https://meta.discourse.org/t/session-timeout/34686 "2015-10-19T19:26:35Z")
**Posts on this page:** 1
**Showing post:** 45

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年九月8日 17:30 UTC](https://meta.discourse.org/t/session-timeout/34686/45 "2020-09-08T17:30:30Z")

</div>

> [@codinghorror](#):
>
> 我们只需要 1440 这个值作为站点设置，其他内容可以忽略。

没错，但我认为如果不会引发太多支持问题，或在技术上不太困难的话，将此值设置为类似 `0` 的值或许应该实现“Cookie 仅在浏览器会话期间有效”的行为。因此，站点设置的描述中应予以说明。

> 最大会话时长 [默认 1440 小时]
> 
> 用户自上次访问起将保持登录状态 n 小时。若设置为 0，用户将在关闭浏览器时退出登录。

---

_[View the full topic](https://meta.discourse.org/t/session-timeout/34686)._
