Fixed a bug that occurs when PHP sessions are autoloaded.