public function clearIdentity()
    {
        $this->getStorage()->clear();

        //all identies go - it's done that way now at least
        $ids = $this->getContainer()->getIdentities();
        $sessionIds = array();
        foreach($ids as $id) {
            $sessionIds[] = $id->getSessionId();
        }
        $this->getSessionProvider()->clear($sessionIds);
        
        $this->getEventManager()->trigger('clearIdentity.post', $this, array(
            'identities' => $ids
        ));
        
        return $ids;
    }