Session cookies
A cookie stored temporarily in memory while you browse. It has no expiry date, lasts only for one visit and is deleted when the browser is closed.
Understanding Session cookies in IGCSE Computer Science Paper 1
What it does: The cookie has no Expires or Max-Age part, so the browser treats it as a session cookie and deletes it at the end of the visit. An expiry date makes the cookie persistent, so it stays on the device. A session cookie has no expiry date.
Common mistakes: The cookie is a session cookie, which is temporary. A persistent cookie would be saved with an expiry date and would not be deleted when the browser closes. Line 2 should be 'Server sends a session cookie'. A session cookie has no expiry date. Adding Max-Age gives it a lifetime, which makes it a persistent cookie. Line 1 should be 'Set-Cookie: id=7'.
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 477–489) and word search (Modules 464–489).
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
session cookieFill in the Blanks
Spot the Error
Student with a class code? Join your class →