MCPcopy 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
35func ClearSession(c *gin.Context) {
36 s := sessions.Default(c)
37 s.Clear()
38 s.Save()
39}

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected