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;
    }
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;
    }
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 ; }
Clears the identity from persistent storage

@return array AuthIdentity
Clears the identity from persistent storage