SAML logout is not working

Nextcloud version: 11.0.1
Operating system and version: CentOS Linux release 7.2.1511
Apache or nginx version: Apache/2.4.6 (CentOS)
PHP version: PHP 5.6.29
Is this the first time you’ve seen this error and can you replicate it?: yes

The issue you are facing: SAML logout is not working. It’s configuret right, and when i click logout I go to ADFS logout screen. But after that if I open nextcloud main page I’m still logedin.

Also I’m getting following php error at each page refresh/open if SAML module is activated.
Don’t sure is this related.
[Wed Feb 22 13:41:57.796982 2017] [:error] [pid 12558] [client 172.16.177.166:48610] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Session has been closed - no further changes to the session are allowed’ in /var/www/nextcloud/lib/private/Session/Internal.php:154\nStack trace:\n#0 /var/www/nextcloud/lib/private/Session/Internal.php(64): OC\Session\Internal->validateSession()\n#1 /var/www/nextcloud/lib/private/Session/CryptoSessionData.php(164): OC\Session\Internal->set(‘encrypted_sessi…’, ‘a61a4296240fb14…’)\n#2 /var/www/nextcloud/lib/private/Session/CryptoSessionData.php(67): OC\Session\CryptoSessionData->close()\n#3 [internal function]: OC\Session\CryptoSessionData->__destruct()\n#4 {main}\n thrown in /var/www/nextcloud/lib/private/Session/Internal.php on line 154

Exception: Session has been closed - no further changes to the session are allowed

/var/www/nextcloud/lib/private/Session/Internal.php - line 64: OC\Session\Internal->validateSession()
/var/www/nextcloud/lib/private/Session/CryptoSessionData.php - line 164: OC\Session\Internal->set(‘encrypted_sessi…’, ‘9a51d20cf1c32e1…’)
/var/www/nextcloud/lib/private/AppFramework/Middleware/SessionMiddleware.php - line 64: OC\Session\CryptoSessionData->close()
/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php - line 94: OC\AppFramework\Middleware\SessionMiddleware->beforeController(Object(OCA\Files\Controller\ViewController), ‘index’)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 89: OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(Object(OCA\Files\Controller\ViewController), ‘index’)
/var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), ‘index’)
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main(‘ViewController’, ‘index’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 1010: OC\Route\Router->match(’/apps/files/’)
/var/www/nextcloud/index.php - line 40: OC handleRequest()
{main}

Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/lib/private/Session/Internal.php:64) at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php#63

Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/lib/private/Session/Internal.php:64) at /var/www/nextcloud/lib/private/AppFramework/Http/Output.php#68