bundle/ContextProvider/SessionContextProvider.php
public function updateUserContext(UserContext $context): void
    {
        if ($this->session->isStarted()) {
            $context->addParameter('sessionId', $this->session->getId());
        }
    }
public function updateUserContext(UserContext $context): void
    {
        if ($this->session->isStarted()) {
            $context->addParameter('sessionId', $this->session->getId());
        }
    }
public function updateUserContext ( UserContext $ context ) : void { if ( $ this -> session -> isStarted ( ) ) { $ context -> addParameter ( 'sessionId' , $ this -> session -> getId ( ) ) ; } }
If the session is started, adds the session ID to user context. This allows
varying the cache per session.
If the session is started adds the session ID to user context . This allows varying the cache per session .