Added login/logout logging functionality in PHP