X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/7b615b3c71825b5b229b78509a16db37e1d3f38d..refs/heads/master:/server/session.go?ds=sidebyside diff --git a/server/session.go b/server/session.go index a097989..1ec3348 100644 --- a/server/session.go +++ b/server/session.go @@ -28,7 +28,6 @@ func currentUser(_ http.ResponseWriter, r *http.Request) (User, error) { func createSessionCookie(w http.ResponseWriter, username string) { sess := generateSession() - log.Println("Generated a random session", sess) expiration := time.Now().Add(365 * 24 * time.Hour) cookie := http.Cookie{Name: "broadcast_session", Value: sess, Expires: expiration, SameSite: http.SameSiteLaxMode} db.InsertSession(username, sess, expiration)