Fixed the logging in/out problems by not using a custom session manager (PHP does it fine)