Cookie use: saving personal details
A cookie can save personal details like your name or address, so forms are autofilled and you are greeted by name on later visits. A persistent cookie suits this.
Understanding Cookie use: saving personal details in IGCSE Computer Science Paper 1
What it does: The name was stored in the cookie on an earlier visit, so the site can read it and greet the visitor on the next visit. The Expires date makes it a persistent cookie, so the saved address is still there on later visits and can fill in forms. Cookies are small text files stored on the user's device by the web browser, and sent back to the site on later visits.
Common mistakes: A persistent cookie must keep the saved name after the browser closes, so it needs a future expiry such as 365 DAYS. Ending at the end of the session would make it a session cookie. Joining the greeting text to the saved name needs the + (concatenation) operator, not -. It should be OUTPUT "Welcome back " + n.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 490–499) and word search (Modules 490–509).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
cookie personal detailsFill in the Blanks
Spot the Error
Student with a class code? Join your class →