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

308
Vistas
Why can't I set session cookies? [Sovled]

I set session cookies but it creates new cookies. I'm tired of this Do you know how to fix it? Code:

document.cookie = ".ROBLOSECURITY=cookie; expires=session; path=/";
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Let's check documentation

;domain=domain (e.g., 'example.com' or 'subdomain.example.com'). If not specified, this defaults to the host portion of the current document location. Contrary to earlier specifications, leading dots in domain names are ignored, but browsers may decline to set the cookie containing such dots. If a domain is specified, subdomains are always included.

Note: The domain must match the domain of the JavaScript origin. Setting cookies to foreign domains will be silently ignored.

Your first cookie with domain www.roblox.com will be accessible only at www.roblox.com/... page but .roblox.com's cookie may be accessed by JS from all roblox.com subdomains.

Here is a good answer

So as @smac89 wrote in comment, You should add domain when create new cookie

document.cookie = ".ROBLOSECURITY=cookie; expires=session; path=/; domain=.roblox.com"
about 4 years ago · Juan Pablo Isaza Denunciar

0

There is no syntax for what you want.

You can either not set the expiration value, the cookie will expire at the end of the session, or choose an arbitrarily large value.

Be aware that some browsers have problems with dates past 2038 (when the Unix epoch time exceeds a 32-bit integer).

See : https://stackoverflow.com/a/532660/1901857

about 4 years ago · Juan Pablo Isaza Denunciar
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