public function getActiveSessions()
    {
        $activeSessions = [];
        foreach ($this->metaDataCache->getByTag('session') as $sessionIdentifier => $sessionInfo) {
            $session = new Session($sessionIdentifier, $sessionInfo['storageIdentifier'], $sessionInfo['lastActivityTimestamp'], $sessionInfo['tags']);
            $activeSessions[] = $session;
        }
        return $activeSessions;
    }
public function getActiveSessions()
    {
        $activeSessions = [];
        foreach ($this->metaDataCache->getByTag('session') as $sessionIdentifier => $sessionInfo) {
            $session = new Session($sessionIdentifier, $sessionInfo['storageIdentifier'], $sessionInfo['lastActivityTimestamp'], $sessionInfo['tags']);
            $activeSessions[] = $session;
        }
        return $activeSessions;
    }
public function getActiveSessions ( ) { $ activeSessions = [ ] ; foreach ( $ this -> metaDataCache -> getByTag ( 'session' ) as $ sessionIdentifier => $ sessionInfo ) { $ session = new Session ( $ sessionIdentifier , $ sessionInfo [ 'storageIdentifier' ] , $ sessionInfo [ 'lastActivityTimestamp' ] , $ sessionInfo [ 'tags' ] ) ; $ activeSessions [ ] = $ session ; } return $ activeSessions ; }
Returns all active sessions, even remote ones.

@return array<SessionInterface>
@api
Returns all active sessions even remote ones .