From 6b7ff29bbbfc345f47d271af665a5c81f3ef217b Mon Sep 17 00:00:00 2001 From: Tim Garrity <40044553+Salamandastron1@users.noreply.github.com> Date: Sun, 17 Oct 2021 15:51:48 -0400 Subject: [PATCH] Newv4() returns only one value --- 030_sessions/08_expire-session/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/030_sessions/08_expire-session/main.go b/030_sessions/08_expire-session/main.go index 690231d9..6bc60663 100644 --- a/030_sessions/08_expire-session/main.go +++ b/030_sessions/08_expire-session/main.go @@ -83,7 +83,7 @@ func signup(w http.ResponseWriter, req *http.Request) { return } // create session - sID, _ := uuid.NewV4() + sID:= uuid.NewV4() c := &http.Cookie{ Name: "session", Value: sID.String(), @@ -130,7 +130,7 @@ func login(w http.ResponseWriter, req *http.Request) { return } // create session - sID, _ := uuid.NewV4() + sID := uuid.NewV4() c := &http.Cookie{ Name: "session", Value: sID.String(),