Cookies
Cookies
Cookies
What is a cookie?
A cookie is a tiny data file stored on a computer by browser software that holds information relating to your browsing activity
Typically a cookie will contain:
Browsing history - what websites you have visited
Login information - usernames & passwords
Preferences - language/font size/themes
The two types of cookie are session cookies and persistent cookies
Session cookies
Stored in RAM
Created each time a user visits a website
Automatically deleted when the browser is closed
Used to track activity during a single browsing session, such as items in a shopping basket
Persistent cookies
Stored on the hard drive
Created the first time a user visits a website
Remain on the device until they expire or are manually deleted
Used to remember login details and user preferences across multiple visits
Session cookie | Persistent cookie | |
|---|---|---|
Where stored | RAM | Hard drive |
When deleted | When browser is closed | When expired or manually deleted |
Purpose | Track current session activity | Remember preferences and login details across visits |