X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/a098a4fcbfe0649cfd9d171e59e822a4bd1b2ec4..8a42be0580469b8fb15fc3369724332f063dca4a:/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)