wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Sessions and Cookies

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Cookies are stored...

a)

on the client

b)

on the server

2.

Same Origin Policy (SOP) means a server cannot set cookies for a different domain.

a)

FALSE

b)

TRUE

3.

Third-Party Cookies...

a)

breach SOP

b)

work around SOP

c)

breach SOP, but must ask for consent

4.

If a cookie's expiry date is not set, it defaults to...

a)

1 day

b)

the current time (the cookie is not saved)

c)

forever (the cookie does not expire)

d)

the end of the session

5.

Cookies cannot be accessed by Javascript.

a)

TRUE

b)

FALSE

6.

Cookies can be accessed by CSS.

a)

TRUE

b)

FALSE

7.

Session cookies expire...

a)

after each request

b)

after each response

c)

when the user closes the browser

d)

when the expiry date set in the cookie is reached

8.

The best approach to steal someone else's cookies is...

a)

to monitor requests and responses at application level

b)

to sniff packets at network level

9.

Strong session IDs...

a)

can be ordered

b)

are predictable

c)

have high entropy

d)

are sequential

10.

Web application firewalls (WAF) sit between the client and the application server

a)

on the server side

b)

on the client side

c)

on both server and client sides

d)

it depends on the browser