Corporate Risk Consultants & Forensic Investigators
What are cookies?
A cookie is a small file browsers use to store information about a user’s interaction with a site. They’ll typically be used to persistently store various types of session data.
What are sessions?
A session is kind of like a digital ID card; each time when you visit a website you’ll be assigned one for the duration of your visit and it will be used to identify you during your time on the site. Sessions are unique to users.
There are many valid reasons for using a combination of sessions and cookies to track user behavior and store information. Here are some common scenarios:
When you add items to your shopping cart on an e-commerce site, the website stores that information so that your cart is updated as you keep shopping and move from page to page.
Cookies also store information used to authenticate a user on a particular website. A user’s login information is saved and reloaded when the user returns to the site. This way you no longer have to remember your usernames and passwords for every site you sign up on.