Skip to content

Commit

Permalink
fix middleware/session update cookie. (gofiber#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Li authored and trim21 committed Aug 15, 2022
1 parent 04a71c9 commit d3b8161
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions middleware/session/session.go
Expand Up @@ -144,10 +144,8 @@ func (s *Session) Save() error {
s.exp = s.config.Expiration
}

// Create session with the session ID if fresh
if s.fresh {
s.setSession()
}
// Update client cookie
s.setSession()

// Convert data to bytes
mux.Lock()
Expand Down

0 comments on commit d3b8161

Please sign in to comment.