mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-26 02:29:01 +08:00
is-write-header 参数相关文档
This commit is contained in:
@@ -76,6 +76,7 @@ StpUtil.login(10001, new SaLoginModel()
|
||||
.setIsLastingCookie(true) // 是否为持久Cookie(临时Cookie在浏览器关闭时会自动删除,持久Cookie在重新打开后依然存在)
|
||||
.setTimeout(60 * 60 * 24 * 7) // 指定此次登录token的有效期, 单位:秒 (如未指定,自动取全局配置的 timeout 值)
|
||||
.setToken("xxxx-xxxx-xxxx-xxxx") // 预定此次登录的生成的Token
|
||||
.setIsWriteHeader(false) // 是否在登录后将 Token 写入到响应头
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user