Skip to content

Commit b4e658c

Browse files
committed
update session destroy
1 parent 8922758 commit b4e658c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

session.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@ func (m *Manager) Destroy(ctx context.Context, w http.ResponseWriter, r *http.Re
335335
return err
336336
}
337337

338+
if m.opts.enableSIDInHTTPHeader {
339+
key := m.opts.sessionNameInHTTPHeader
340+
r.Header.Del(key)
341+
w.Header().Del(key)
342+
}
343+
338344
if m.opts.enableSetCookie {
339345
cookie := &http.Cookie{
340346
Name: m.opts.cookieName,

0 commit comments

Comments
 (0)