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

210
Vistas
get stored cookies by python or javascript

enter image description hereI have a webpage. I log in with my username and password. Session stored in Chrome.

In this format
Name = session
Content = .eJwlj0tuwzAMBe_CtRcSKZpiLmNI_KBBggawk1XRu1dA1w8zmPcDR55xfcHtfX5ig-PucAOOOkLYK3uhVnzOoqaqTDmyYqAhIjOatNplBpQhEFQ-Zo3nTR7pVaZjNnlbobM-E-PJXW1KMEW0EZpEIiFRM2sOvM4

I can't get the stored session. I tried lots of ways on the internet but couldn't get it.

I used document. session returns undefined. Used browser cookie library but still nothing. Used other npm packages.

All cookies examples are made for Google but can't get them from my page.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

A session id like this is usually stored as a cookie so it can be passed back to the server easily with each request. So the question becomes how can I get a cookie by name?

You could probably use a one-liner a little like this- test it in the Javascript console to see whether it needs any tweaking for your situation:

document.cookie.split(';').find( (x) => x.trim().startsWith('session=')).trim().substring('session='.length);
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