August 2000
Intermediate to advanced
800 pages
13h 15m
English
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.
Use ...
Read now
Unlock full access