PHP sessions can be configured to use a database as the persistent storage medium. If you're scaling up by implementing a server farm, that's probably the best way of sharing the storage across servers.
Generally, though, the filesystem is faster than connecting with a database to retrieve a little flat chunk of data.