Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

211
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda