Fixes SessionComponentTest::testSessionValid. Refactored _hasSession and other erros on php 7
Fixes SessionComponentTest::testSessionValid. Refactored _hasSession and other erros on php 7

init would always set CakeSession::$_userAgent.

et304383/passbolt_api,et304383/passbolt_api,et304383/passbolt_api,et304383/passbolt_api,et304383/passbolt_api