public function shutdown() { $storage = $this->getContext()->getStorage(); // write the last request time to the storage $storage->write(self::LAST_REQUEST_NAMESPACE, $this->lastRequest); $storage->write(self::AUTH_NAMESPACE, $this->authenticated); $storage->write(self::CREDENTIAL_NAMESPACE, $this->credentials); // call the parent shutdown method parent::shutdown(); }