Appendix F. Managing Sessions in theDatabase Tier


In Chapter 10, we discussed the development of session-based applications using the PHP session management features. In this appendix, we briefly explain how to create your own, alternative session storage functions that store session variables in a database. Specifically, this appendix covers:

  • Why you might want to replace the default PHP session storage layer with customized functions using the database tier

  • How to write user-defined PHP session storage handlers

  • How to create and install a fully functional set of PHP handlers that use a table in a MySQL database to store session variables



Web Database Application with PHP and MySQL
Web Database Applications with PHP & MySQL, 2nd Edition
ISBN: 0596005431
EAN: 2147483647
Year: 2003
Pages: 176

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net