Skip to content

Commit

Permalink
Bug fix on logout (#791)
Browse files Browse the repository at this point in the history
* Bug fix on logout

* Bug fix, we have to not set a domain
  • Loading branch information
hiveer authored Nov 19, 2024
1 parent a59b4e4 commit 8ab4c90
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/handlers/render/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ func (i *SessionHandlerImpl) Logout(ctx *gin.Context) {

// Loop through the cookies and remove them
for _, cookie := range cookies {
ctx.SetCookie(cookie.Name, "", -1, "/", "localhost", false, true)
ctx.SetCookie(cookie.Name, "", -1, "/", "opencsg.com", false, true)
ctx.SetCookie(cookie.Name, "", -1, "/", "stg.opencsg.com", false, true)
ctx.SetCookie(cookie.Name, "", -1, "/", ".opencsg-stg.com", false, true)
ctx.SetCookie(cookie.Name, "", -1, "/", ".opencsg.com", false, true)
ctx.SetCookie(cookie.Name, "", -1, "/", "", false, false)
}

if paramRedirectPath == "" {
Expand Down

0 comments on commit 8ab4c90

Please sign in to comment.