If cookies are disabled on a visitor's machine, should you try using sessions?
Sessions are terminated when your visitor navigates away from your site: true or false?
Because sessions are stored on your server, they are more secure: true or false?
You always need to call serialize() before storing an array in a session: true or false?
Which php.ini directive allows you to specify how long a session should be considered active?
g) None of the above
If you are using a custom session data handler, what should the session read function return if no data exists for the current session?
Want to learn PHP 7?
Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!
If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!
Next chapter: Further reading >>
Previous chapter: Summary
Home: Table of Contents
Copyright ©2015 Paul Hudson. Follow me: @twostraws.