Cookies (Cambridge (CIE) O Level Computer Science): Revision Note
Exam code: 2210
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
Examiner Tips and Tricks
Cambridge IGCSE 0478 expects you to describe the purpose of cookies, differentiate between session and persistent types, and explain the legal requirement for user consent. This page covers exactly what examiners test, no extra fluff.
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 |
Examiner Tips and Tricks
Examiners are looking for what cookies do, not whether you think they are good or bad. Focus on their purpose: storing login info, preferences, and session data, not "tracking users" or "spying." When asked to compare the two types, always reference where they are stored and when they are deleted as these are the details that earn marks.
Unlock more, it's free!
Was this revision note helpful?