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: user=Ava; Expires=Fri, 01 Jan 2027 00:00:00 GMT | ASet-Cookie: lang=en; Expires=Sat, 30 Jun 2029 12:00:00 GMT | |
| 2Set-Cookie: theme=dark; Max-Age=2592000 | BThis describes a session cookie. A persistent cookie stays on the device after the browser closes until its expiry date. | |
| 3A persistent cookie has an expiry date, so it is removed only when that date is reached or the user deletes it | CPersistent cookies are stored on the hard drive and have an expiry date. Cookies held only in memory without an expiry date are session cookies. | |
| 4A persistent cookie is sent back to the web server on each later visit to the website, even after the browser was closed | DKeeps the cookie for 30 days, then it is deleted, even if the browser has been closed in between | |
| 5A persistent cookie is deleted as soon as the browser is closed. | EGET /home HTTP/1.1 Host: www.shop.com Cookie: user=Ava | |
| 6A persistent cookie is kept in RAM and has no expiry date. | FCreates a persistent cookie that stays on the device until the expiry date given |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
persistent cookie — A cookie saved on the device until its expiry date or until the user deletes it, so it stays after the browser closes and is sent again on later visits.Set-Cookie: id=42; Expires=01 Jan 2027Set-Cookie: id=42; Expires=01 Jan 2027GET /shop HTTP/1.1
Host: www.shop.com
Cookie: id=42IF today > expiry THEN
DELETE cookie
ENDIFIF today < expiry THEN
SEND cookie TO server
ENDIF