concrete/src/Session/Storage/LoggedStorage.php
public function clear()
    {
        $this->logInfo('Clearing Session.');

        $metadata = $this->getMetadataBag();
        $lifetime = $metadata->getLifetime();
        $lastUsed = $metadata->getLastUsed();

        // If the existing session has expired on its own
        if ($lifetime && time() > $lastUsed + $lifetime) {
            $this->logInfo('Session expired.');
        }

        return $this->wrappedStorage->clear();
    }
public function clear()
    {
        $this->logInfo('Clearing Session.');

        $metadata = $this->getMetadataBag();
        $lifetime = $metadata->getLifetime();
        $lastUsed = $metadata->getLastUsed();

        // If the existing session has expired on its own
        if ($lifetime && time() > $lastUsed + $lifetime) {
            $this->logInfo('Session expired.');
        }

        return $this->wrappedStorage->clear();
    }
public function clear ( ) { $ this -> logInfo ( 'Clearing Session.' ) ; $ metadata = $ this -> getMetadataBag ( ) ; $ lifetime = $ metadata -> getLifetime ( ) ; $ lastUsed = $ metadata -> getLastUsed ( ) ; // If the existing session has expired on its own if ( $ lifetime && time ( ) > $ lastUsed + $ lifetime ) { $ this -> logInfo ( 'Session expired.' ) ; } return $ this -> wrappedStorage -> clear ( ) ; }
Clear all session data in memory.
Clear all session data in memory .