Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

265
Vistas
Page have their own cookies path didn't link to the index (Javascript)

When I clicked allow the cookie at the blog page, then it have their own path. When I back to the index page it ask for cookie again.

(But if I click allow at the index page, it will link to every page.) [enter image description here][1]

This happens when I clicked allow at the index page and blog page. (It's have 2 cookies and the same name but different path) [1]: https://i.stack.imgur.com/mjlI4.png

acceptBtn = cookieBox.querySelector(".consent_buttons button");

acceptBtn.onclick = ()=>{
    document.cookie = "Geek-Cookies=GEEKGENTH; max-age"+60*60*24*30;
    if(document.cookie) { //if the above cookie had set
        cookieBox.classList.add("hide");
    }else {
        alert("Cookie can't be set!");
    }
}
let checkCookie = document.cookie.indexOf("Geek-Cookies=GEEKGENTH");
checkCookie != -1 ? cookieBox.classList.add("hide"): cookieBox.classList.remove("hide");```

Thank you,
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda