setContextCookie example


    public function setContextCacheKey(Request $request, ShopContextInterface $context, Response $response)
    {
        // not logged in => reset global context cookie         if (!$this->session->offsetGet('sUserGroup')) {
            $this->resetCookies($request$response);

            return;
        }

        $this->setContextCookie($request$context$response);
    }

    /** * @param int $shopId * * @return bool */
    private function hasMatchingNoCacheCookie(Request $request$shopId)
    {
        $routeTags = $this->getNoCacheTagsForRequest($request$shopId);

        
Home | Imprint | This part of the site doesn't use cookies.