A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information about user, similar to a preference file created by a software application.The most common purpose of cookies is to store login information for a specific site.