Forums

Save field data for next sessions

WorldWideCode 12 Jan, 2018
Hi all,
in our company site we've a form that is used to submit customer support requests.
Customer has to fill form with his name, company name, email and than subject and description for this request.
It would be nice if form could remember user data (name, company, email) across sessions.
Every time user has to send support request, he would found his data already in form fields.
How can I implement this feature?
Thanks in advance
GreyHead 15 Jan, 2018
Hi WorldWideCode,

If you require customers to log in then you can read their data from a database table.

Otherwise you could still save the info to a database table identified with a random string and save the random string to a cookie on the user's computer. This is much less reliable as they may clear cookies or use a different computer the next time.

Bob
This topic is locked and no more replies can be posted.