Chapter 12. Working with Cookies and User Sessions


PHP contains numerous functions for managing and keeping track of user information, including both simple cookies and all-encompassing user sessions. Sessions use techniques built into the PHP language, making the act of saving state as easy as referencing a super-global variable.

In this chapter, you will learn

  • How to store and retrieve cookie information

  • What session variables are and how they work

  • How to start or resume a session

  • How to store variables in a session

  • How to destroy a session

  • How to unset session variables




Sams Teach Yourself PHP, MySQL And Apache All in One
Sams Teach Yourself PHP, MySQL and Apache All in One (3rd Edition)
ISBN: 0672328739
EAN: 2147483647
Year: 2004
Pages: 327

Similar book on Amazon

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