nerdexam
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)
  • A
    6% (2)
  • B
    3% (1)
  • C
    78% (28)
  • D
    11% (4)
  • E
    3% (1)

Topics

#session hijacking#session fixation#session security#cookie settings

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice