in part of my code i save a cookie like this
if encoded, err := s.Encode(USER_ID_COOKIE_NAME, value); err == nil {
user_id := &http.Cookie{
Name: USER_ID_COOKIE_NAME,
Value: encoded,
Path: "/",
HttpOnly: true,
}
http.SetCookie(w, user_id)
}0
when i do, it saves a cookie but when i try to go to another path, the cookie isnt there.
for example: once logged in, im at path "/oauth/square", when i then click on a link to "/settings" my cookie is gone. I can confirm the cookie is set while at the initial path. I've included an image of the cookie in my browser as well. How can i set the cookie so it persists anywhere while on that domain?