Update session.go revert f21c293693

This commit is contained in:
Alireza Ahmand 2024-07-26 22:30:00 +03:30 committed by GitHub
parent a37b1bde4c
commit 1551860dda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,10 +17,6 @@ func init() {
func SetLoginUser(c *gin.Context, user *model.User) error { func SetLoginUser(c *gin.Context, user *model.User) error {
s := sessions.Default(c) s := sessions.Default(c)
s.Options(sessions.Options{
Path: "/",
HttpOnly: true,
})
s.Set(loginUser, user) s.Set(loginUser, user)
return s.Save() return s.Save()
} }