-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcookies.yaml
51 lines (51 loc) · 2.59 KB
/
cookies.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
questions:
-
uuid: 1eebf878-8b9c-6c5a-9312-99d84c92580c
question: "Retrieving a cookie named 'mycookie' is done using which of the following PHP constructs ?"
answers:
- { value: "cookies::get('mycookie')", correct: false }
- { value: "get_cookie('mycookie')", correct: false }
- { value: "$_SERVER['cookies']['mycookie']", correct: false }
- { value: 'None of the above', correct: false }
- { value: "$_COOKIE['mycookie']", correct: true }
help: 'https://www.php.net/manual/en/reserved.variables.cookies.php'
-
uuid: 1eebf878-8b9d-6a4c-aa5c-99d84c92580c
question: 'What is the path to set session cookie_lifetime parameter in a project configuration?'
answers:
- { value: framework.session.cookie_lifetime, correct: true }
- { value: framework.session.cookie.lifetime, correct: false }
- { value: framework.parameters.cookie_lifetime, correct: false }
- { value: framework.cookie_lifetime, correct: false }
help: 'https://symfony.com/doc/current/reference/configuration/framework.html'
-
uuid: 1eebf878-8ba0-6512-85ad-99d84c92580c
question: 'Which of the following HTTP headers can be used by the server to the client to exchange informations about cookies ?'
answers:
- { value: Cookie, correct: false }
- { value: Set-Cookie, correct: true }
- { value: Delete-Cookie, correct: false }
help: 'https://developer.mozilla.org/fr/docs/Web/HTTP/Cookies'
-
uuid: 1eebf878-8ba2-6d1c-88ef-99d84c92580c
question: 'A cookie is set from foo.com. The domain attribute is set to foo.com. In most browsers, will this cookie be sent with a request to bar.foo.com ?'
answers:
- { value: 'No', correct: false }
- { value: 'Yes', correct: true }
help: 'https://en.wikipedia.org/wiki/HTTP_cookie#Cookie_attributes'
-
uuid: 1ef65d9e-55a9-67de-8b7c-5f3ce73d458b
question: 'Is it possible for PHP sessions to operate without using cookies?'
answers:
- { value: 'Yes', correct: true }
- { value: 'No', correct: false }
help: 'https://www.php.net/manual/en/session.idpassing.php'
-
uuid: 1ef65daa-b527-60b0-bf86-d13f9c9bf750
question: 'For a sensitive application with strict cookie usage policies, what cookie strategy is recommended?'
answers:
- { value: 'Cookie::SAMESITE_LAX', correct: false }
- { value: 'Cookie::SAMESITE_SAME_ORIGIN', correct: false }
- { value: 'Cookie::SAMESITE_NONE', correct: false }
- { value: 'Cookie::SAMESITE_STRICT', correct: true }
help: 'https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie'