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: loggedIn=true | AloggedIn=true | |
| 2Set-Cookie: remember=yes; Max-Age=2592000 | BThe login cookie may still be stored, so the next user could still be logged in as you. | |
| 3A cookie stores a login status so the user stays logged in while moving between pages during a visit | CA remember me cookie that lasts 30 days, so the user stays logged in on future visits. | |
| 4Logging out on a shared computer deletes the login cookie so the next person cannot use your account | DThe server tells the browser to store a login status cookie so the user stays logged in on later pages. | |
| 5Tick 'Remember me' on a school library computer | EloggedIn=; Max-Age=0 | |
| 6Close the browser without clicking Log out on a shared PC | FOn a shared computer, a remember me cookie stays saved in the browser, so the next person could open your account. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
login cookie — A small file a website saves in your browser to remember you are logged in, so you do not have to type your username and password on every page.IF loginCookieExists THEN
DISPLAY "Welcome back"
ENDIFIF rememberMe = TRUE THEN
cookieType ← "persistent"
ENDIFIF userClicksLogout THEN
DELETE loginCookie
ENDIFIF loginCookieFound = FALSE THEN
DISPLAY loginForm
ENDIFIF sharedComputer = TRUE THEN
cookieType ← "session"
ENDIF