Skip to content

Commit

Permalink
fix middleware/session update cookie. (#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Li committed Jul 2, 2022
1 parent b8b5c8a commit 41d31a0
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 41d31a0

Please sign in to comment.