nerdexam
Zend

200-710 · Question #149

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)

The correct answer is A. Store session data in a different location with session.save_path . B. Store session data in a database. See the full explanation below for the reasoning.

Security

Question

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)

Options

  • AStore session data in a different location with session.save_path .
  • BStore session data in a database.
  • CEnable safe_mode .
  • DSet session.name to something unique.

How the community answered

(27 responses)
  • A
    81% (22)
  • C
    11% (3)
  • D
    7% (2)

Topics

#session security#session.save_path#shared hosting#database sessions

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice