Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Set-Cookie: basket=3 | AA cookie with no expiry date, so it is a session cookie and is deleted when the browser closes | |
| 2session cookie | BA cookie held in memory that lasts only for one visit and is deleted when the browser is closed | |
| 3A session cookie has no expiry date, so it is not kept after the visit ends | CSet-Cookie: sessionId=A7F2; Expires=Fri, 01 Jan 2027 | |
| 4A cookie that is kept after the browser closes has an expiry date, so it is NOT a session cookie | DA session cookie is deleted when the browser is closed. Staying logged in the next day needs a persistent cookie. | |
| 5A session cookie is saved on the hard drive for 30 days | EA session cookie is held temporarily in memory and is not saved for days. A cookie that is kept for 30 days is a persistent cookie. | |
| 6A session cookie stays after you close the browser so you are logged in tomorrow | FSet-Cookie: sessionId=A7F2 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
session cookie — 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.Set-Cookie: sid=a1b2c3IF browserClosed = TRUE THEN
DELETE sessionCookie
ENDIFIF cookie.expiry = NULL THEN
cookieType ← "session"
ENDIFSTORE sessionCookie IN MEMORYWHILE browserOpen = TRUE
KEEP sessionCookie
ENDWHILE