I would like to create a local data and when user access the same page, the local data is retrieved.
There is absolutely no need to send the data to the server.
Will cookie be able to achieve that?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A cookie will be sent to the server with every request. If you don’t mind that, then cookies are fine. If you’d rather avoid that, you’ll need to look into localStorage.