0 votes
in JavaScript by
Why do you need a Cookie in javascript?

1 Answer

0 votes
by

Cookies are used to remember information about the user profile(such as username). It basically involves two steps,

  1. When a user visits a web page, the user profile can be stored in a cookie.
  2. Next time the user visits the page, the cookie remembers the user profile.
...