Cookies are small text files that are downloaded and locally stored by a user’s browser, and typically contain information about the user’s session and/or preferences. Occasionally, Web sites also store authentication-related information such as usernames and passwords. Each time the user visits the Web site, the cookie is retrieved by the site’s Web application and data from the cookie is processed. Storing this information within client-side cookies prevents Web sites from having to store and maintain information about all user sessions and preferences.

Fast Facts

There are three main cookie types: Session, Persistent, and Tracking.

  • Session Cookies: Session cookies are used by Web applications to store information, and when a user ...

Get Eleventh Hour Security+ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.