The functions in this section work with the session handling capabilities of PHP. They were added in PHP 4. To read more about their use, turn back to Chapter 7. That chapter also includes a complete example.
Use session_decode to read encoded session data and set the values of global variables in the session. This happens automatically when you start a session with session_start.
The session_destroy function eliminates all the data stored in the session. It does not destroy the session itself, however.
The session_encode function returns a string that contains encoded information about the current session.