What is cookie?
A cookie is a piece of text that a web server can store on a user’s hard disk. Cookies allow a website to store information on a user’s machine and later it can be retrieved. The pieces of information that a cookie store are structured as name-value pairs.