nerdexam
Zend

200-550 · Question #95

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.

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

(25 responses)
  • B
    16% (4)
  • C
    72% (18)
  • D
    4% (1)
  • E
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice