Chapter 31. Session-Management Functions

Session-management functions provide a way to carry data across normally sessionless HTTP requests. Prior to the release of PHP 4, session functionality was emulated in software using PHPLib, and many people continue to use PHPLib for its many useful features in addition to session support. By default, sessions in PHP 4 are file-based and session files are written in the /tmp directory. However, it’s possible to write your own session handlers, so sessions can be stored in any store. Various session-handling directives are edited in the PHP ini file and at compile time, including transparent session support.

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.