X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/546b243565e913a70e174ec80fd903f077fd5277..a098a4fcbfe0649cfd9d171e59e822a4bd1b2ec4:/server/main.go?ds=inline diff --git a/server/main.go b/server/main.go index 105e858..69d1ca7 100644 --- a/server/main.go +++ b/server/main.go @@ -678,6 +678,10 @@ func uploadFile(w http.ResponseWriter, r *http.Request) { } func logOutPage(w http.ResponseWriter, r *http.Request, user User) { + cookie, err := r.Cookie("broadcast_session") + if err == nil { + db.ClearSession(user.Username, cookie.Value) + } clearSessionCookie(w) renderHeader(w, "", user) tmpl := template.Must(template.ParseFS(content, "templates/logout.html"))