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();
    }