Logging out on shared devices

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Logging out on shared devices

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. You finish your homework on a library computer. What should you do before you walk away?
A Log out of your account
B Just close the browser tab
2. Which statement about logging out is true?
A Logging out ends your session so the next person cannot use your account
B Logging out deletes your account for good
3. A browser on a school computer asks, 'Save password?' What is the safest choice?
A Choose Save so it is easy next time
B Choose Never or Not now
4. The bell rings and you have to leave a school computer for a few minutes, but you will be back. What is a good habit?
A Leave the screen on so nobody thinks you have gone
B Lock the screen before you leave
5. You have finished using the school computer for the day. Which is better?
A Log out, not only lock the screen
B Lock the screen and leave it for the next person

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Log out AClick your name > Sign out
2Lock screen BClosing a tab often does not log you out, so your account may still be open for the next person. You should log out first.
3On a shared device, do not let the browser remember your password. CEnds your session so the next person on a school or library computer cannot open or use your account.
4When you finish on a school or library computer, end your session before you leave. DHides your work during a short break and needs your password to return, but does not end your session.
5Close the browser tab and walk away ESave password? -> Never
6Save password? -> Yes (on a library computer) FSaving your password on a shared device lets the next person sign in to your account. You should choose Never or Not now.

Definitions

log out

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Finished on a school computer? I _______
2.
On a shared device, never ____ my password
3.
Leaving the desk? ____ the screen first
4.
No log out means the next ____ has access
5.
if (sharedDevice) { ______(); }

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A login('mia')
B save_password = True
C read_email()
D logout('mia')
Question 2
A use_school_computer()
B do_homework()
C close_tab()
D walk_away()
Question 3
A login(user)
B write_essay()
C save_work()
D login(user)
Question 4
A if not device_is_shared:
B remember_me = False
C logout_when_done = True
Question 5
A finished = True
B if finished:
C save_work()
D stay_logged_in()

Answer Key

Logging out on shared devices
Section A: Quick Questions
Q1
A — Log out of your account
Q2
A — Logging out ends your session so the next person cannot use your account
Q3
B — Choose Never or Not now
Q4
B — Lock the screen before you leave
Q5
A — Log out, not only lock the screen
Section B: Match the Pairs
Q1
Log out → Ends your session so the next person on a school or library computer cannot open or use your account.
Q2
Lock screen → Hides your work during a short break and needs your password to return, but does not end your session.
Q3
On a shared device, do not let the browser remember your password. → Save password? -> Never
Q4
When you finish on a school or library computer, end your session before you leave. → Click your name > Sign out
Q5
Close the browser tab and walk away → Closing a tab often does not log you out, so your account may still be open for the next person. You should log out first.
Q6
Save password? -> Yes (on a library computer) → Saving your password on a shared device lets the next person sign in to your account. You should choose Never or Not now.
Section C: Definitions
Q1
log out — Ending your session on an account so the next person using a shared device, like a school or library computer, cannot open or use your account.
Section D: Fill in the Blanks
Q1
Finished on a school computer? I log out
Q2
On a shared device, never save my password
Q3
Leaving the desk? Lock the screen first
Q4
No log out means the next user has access
Q5
if (sharedDevice) { logOut(); }
Section E: Spot the Error
Q1
B — On a shared device you should never save your password, because the next person could use it. It should be save_password = False.
Q2
C — Closing a tab does not end your session, so your account may still be open. You must call log_out() before walking away.
Q3
D — The program logs in again at the end instead of logging out. The last step should be logout(user) so the next person cannot use the account.
Q4
A — The safety settings must apply when the device IS shared, like a library computer. The condition should be if device_is_shared:.
Q5
D — When you are finished you should end your session, not stay logged in. The line should be logout().