Zend
200-710 · Question #119
Which of the following does NOT help to protect against session hijacking and fixation attacks?
The correct answer is C. Set the session.cookie_lifetime php.ini parameter to 0. See the full explanation below for the reasoning.
State Management
Question
Which of the following does NOT help to protect against session hijacking and fixation attacks?
Options
- AUse SSL and set the $secure cookie parameter to true.
- BSet the session.use_only_cookies php.ini parameter to 1 .
- CSet the session.cookie_lifetime php.ini parameter to 0 .
- DProtect against XSS vulnerabilities in the application.
- ERotate the session ID on successful login and logout using session_regenerate_id()
How the community answered
(36 responses)- A6% (2)
- B3% (1)
- C78% (28)
- D11% (4)
- E3% (1)
Topics
#session hijacking#session fixation#session security#cookie settings
Community Discussion
No community discussion yet for this question.