Learning PHP and MySQL

13.5. Chapter 13 Questions

Question 13-1.

Where is the data for a cookie stored?

Question 13-2.

What function can be used to encode passwords for storage in the database so that users' plain-text passwords aren't exploited?

Question 13-3.

Create a session and store the value 1 in the session variable user_id.

Question 13-4.

Display the user_id session variable created in Question 13-3.

See the Appendix for the answers to these questions.

Категории