[go: nahoru, domu]

Skip to content

Commit

Permalink
update sa-token-doc/fun/session-model.md.
Browse files Browse the repository at this point in the history
添加 Custom-Session 有效期说明
  • Loading branch information
AppleOfGray authored and gitee-org committed Feb 27, 2023
1 parent 417b2e2 commit 52bf7ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sa-token-doc/fun/session-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ session.set("name", "张三");

只要两个自定义Session的Id一致,它们就是同一个Session

Custom-Session的会话有效期默认使用`SaManager.getConfig().getTimeout()`, 如果需要修改会话有效期, 可以在创建之后, 使用对象方法修改

``` java
session.updateTimeout(1000); // 参数说明和全局有效期保持一致
```


### 4、Session模型结构图

Expand Down

0 comments on commit 52bf7ab

Please sign in to comment.