X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/7b615b3c71825b5b229b78509a16db37e1d3f38d..92da3eadf29c9e90cd67fd15dba3b8487ce4a918:/server/session.go?ds=inline 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)