Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You want to store session data in a database instead of in files. If multiple web servers all have access to the same database, the session data is then mirrored across all the web servers.
Use a class or a set of functions in conjunction with the session_set_save_handler( ) function to define database-aware routines for session management. For example, use PEAR’s HTTP_Session package for convenient database session storage: