Test Your Knowledge: Questions

Question 13-1

Why must a cookie be transferred at the start of a program?

Question 13-2

Which PHP function stores a cookie on a web browser?

Question 13-3

How can you destroy a cookie?

Question 13-4

Where are the username and password stored in a PHP program when using HTTP authentication?

Question 13-5

Why is the md5 function a powerful security measure?

Question 13-6

What is meant by “salting” a string?

Question 13-7

What is a PHP session?

Question 13-8

How do you initiate a PHP session?

Question 13-9

What is session hijacking?

Question 13-10

What is session fixation?

See the section Chapter 13 Answers in Appendix A for the answers to these questions.

Get Learning PHP, MySQL, and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.