src/Adapter/BrowserSessionAdapter.php
public function initialize(ServerRequestInterface $request)
    {
        $session_id = $this->cookies->get($request, $this->session_cookie_name);

        if (!$session_id) {
            return null;
        }

        $session = $this->session_repository->getById($session_id);

        if ($session instanceof SessionInterface) {
            if ($user = $session->getAuthenticatedUser($this->user_repository)) {
                $this->session_repository->recordUsageBySession($session);

                return new AuthenticationTransport($this, $user, $session);
            }
        }

        return new CleanUpTransport($this);
    }
public function initialize(ServerRequestInterface $request)
    {
        $session_id = $this->cookies->get($request, $this->session_cookie_name);

        if (!$session_id) {
            return null;
        }

        $session = $this->session_repository->getById($session_id);

        if ($session instanceof SessionInterface) {
            if ($user = $session->getAuthenticatedUser($this->user_repository)) {
                $this->session_repository->recordUsageBySession($session);

                return new AuthenticationTransport($this, $user, $session);
            }
        }

        return new CleanUpTransport($this);
    }
{@inheritdoc}