更新大量功能

This commit is contained in:
sprov
2021-05-28 17:32:51 +08:00
parent 3cd25ce5ea
commit a66dff6959
41 changed files with 1231 additions and 1009 deletions

View File

@@ -38,4 +38,9 @@ func IsLogin(c *gin.Context) bool {
func ClearSession(c *gin.Context) {
s := sessions.Default(c)
s.Clear()
s.Options(sessions.Options{
Path: "/",
MaxAge: -1,
})
s.Save()
}