use \OC::$session instead of $_SESSION
proper test for use_logon_credentials
fixing boolean handling
never hack late night
Merge pull request #4788 from owncloud/fixin-irods-session-master

Fixing session handling in iRODS