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

245
Vistas
Is there a way to remember a string from a user session, even after the user has logged out, so everytime they come in, it autofills?

I want to let the user login and a few actions will give them a string, this string needs to be stored somewhere so that even after they logout and login later on, the string can get auto-filled in a text box.

  • Frontend: React
  • Backend: Node, mysql

Would cookies be feasible? If so kindly guide me as to how.

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

0

You can do it with JavaScript using localStorage.

For example:

localStorage.setItem('myLoginString', their_loginString);

You can then fetch the value later with:

their_loginString = localStorage.getItem('myLoginString');

This is stored in their browser, so:

  1. The string would need to be generated on the browser side, or fetched from the server with an AJAX request or similar.

  2. It is unique to that browser. If they load a different one, then the saved string won't be there.

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