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