we first shall check if the current session is valid - otherwise the session-id will be regenerated on login via basic auth
fixing ident
Merge pull request #7633 from owncloud/fix-7582-stable6

Fix 7582 stable6