uuid4 example

return;
        }

        /** @var Enlight_Controller_Front $controller */
        $controller = $this->container->get('front');

        $response = $controller->Response();

        $request = $controller->Request();

        $context = $this->container->get(\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::class)->getShopContext();
        $token = Uuid::uuid4()->toString();
        $token .= '.' . $context->getShop()->getParentId();

        $expire = time() + 365 * 24 * 60 * 60;

        $session = $this->container->get('session');
        $session->offsetSet('auto-user', null);
        $session->offsetSet('userInfo', null);

        $controller->Response()->headers->setCookie(
            new Cookie(
                'slt',
                
Home | Imprint | This part of the site doesn't use cookies.