示例#1
13
文件: auth.go 项目: hobo-c/gin_sample
// Logout will clear out the session and call the Logout() user function.
func Logout(s sessions.Session, user User) {
	user.Logout()
	s.Delete(SessionKey)
	s.Save()
}
示例#2
0
文件: auth.go 项目: hobo-c/gin_sample
func (a auth) LogoutTest(s sessions.Session) {
	a.User.Logout()
	s.Delete(SessionKey)
	s.Save()
}