Cookies are defined as pieces of data sent from the webserver to the browser. Websites do this mainly to understand how users go between pages and to remember what information each user has entered.
Webpages don’t have a memory of their own. So, users going from one page to the other are always thought to be new visitors. For this reason, session cookies exist and assist websites in keeping track of user movements.
Cookies make it possible for users to go through many pages of a site quickly and easily without prior authentication or additional recognition on every new page they visit.
Session cookies make users recognizable for a website and any page changes or item or data selection they do is going to be remembered regarding every page.