Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudreve/cloudreve
/ ClearSession
Function
ClearSession
pkg/util/session.go:35–39 ·
view source on GitHub ↗
ClearSession 清空session
(c *gin.Context)
Source
from the content-addressed store, hash-verified
33
34
// ClearSession 清空session
35
func
ClearSession(c *gin.Context) {
36
s := sessions.Default(c)
37
s.Clear()
38
s.Save()
39
}
Callers
nothing calls this directly
Calls
1
Save
Method · 0.45
Tested by
no test coverage detected