Cookies (Cambridge (CIE) IGCSE Computer Science): Revision Note
Exam code: 0478 & 0984
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 |
Examiner Tips and Tricks
Go beyond "session cookies are temporary and persistent cookies are permanent": say where each is stored and when it is deleted.
Don't repeat a use of cookies that the question has already given you.
Unlock more, it's free!
Was this revision note helpful?
Build on this topic