I'm creating a session, after the session/cookie is created it vanishes immediately
session, err := r.Cookie("session-id")
if err != nil {
session = &http.Cookie{
Name: "session-id",
Value: sessionID.String(), //uuid
MaxAge: 0,
}
http.SetCookie(w, session)
}
I'm not sure if it's being deleted, but the moment the cookie is created it vanishes immediately from google chrome(Application/cookies). This is a problem because I can't detect the cookie when going to another path.