Clear session after logout

Fixes https://github.com/owncloud/core/issues/8420

@PVince81 @mariodebian