Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!