Cookies (Cambridge (CIE) O Level Computer Science): Revision Note

Exam code: 2210

Robert Hampton

Written by: Robert Hampton

Reviewed by: James Woodhouse

Updated on

Cookies

  • 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!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.