sessionSettings['name']; $cookies = $componentContext->getHttpRequest()->getCookieParams(); if (!isset($cookies[$sessionCookieName])) { return; } // TODO: sessionIdentifier might be wrong, probably it should probably be storage identifier $key = new Key('session-' . $cookies[$sessionCookieName]); $lock = $this->lockFactory->createLockFromKey($key, $this->timeToLive, $this->autoRelease); $componentContext->setParameter(SessionLockRequestComponent::class, static::PARAMETER_NAME, $lock); $this->logger->debug('SessionLock: Get ' . $key); $lock->acquire(true); $this->logger->debug('SessionLock: Acquired ' . $key); } }