From 52bf7abcd1a1cd0b78aac29ac3d2338592075cee Mon Sep 17 00:00:00 2001 From: AppleOfGray Date: Mon, 27 Feb 2023 05:00:33 +0000 Subject: [PATCH] =?UTF-8?q?update=20sa-token-doc/fun/session-model.md.=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Custom-Session=20=E6=9C=89=E6=95=88?= =?UTF-8?q?=E6=9C=9F=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sa-token-doc/fun/session-model.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sa-token-doc/fun/session-model.md b/sa-token-doc/fun/session-model.md index ef26e323..4d2fd66c 100644 --- a/sa-token-doc/fun/session-model.md +++ b/sa-token-doc/fun/session-model.md @@ -80,6 +80,12 @@ session.set("name", "张三"); 只要两个自定义Session的Id一致,它们就是同一个Session +Custom-Session的会话有效期默认使用`SaManager.getConfig().getTimeout()`, 如果需要修改会话有效期, 可以在创建之后, 使用对象方法修改 + +``` java +session.updateTimeout(1000); // 参数说明和全局有效期保持一致 +``` + ### 4、Session模型结构图