private function sendRememberMeCookie(UserInterface $user, RememberMeCookie $cookie, Response $res)
    {
        // send the cookie with the same properties as the session cookie
        $sessionCookie = session_get_cookie_params();
        $res->setCookie($this->rememberMeCookieName(),
            $cookie->encode(),
            $cookie->getExpires(time()),
            $sessionCookie['path'],
            $sessionCookie['domain'],
            $sessionCookie['secure'],
            true);

        // save the cookie in the DB
        $cookie->persist($user);
    }
private function sendRememberMeCookie(UserInterface $user, RememberMeCookie $cookie, Response $res)
    {
        // send the cookie with the same properties as the session cookie
        $sessionCookie = session_get_cookie_params();
        $res->setCookie($this->rememberMeCookieName(),
            $cookie->encode(),
            $cookie->getExpires(time()),
            $sessionCookie['path'],
            $sessionCookie['domain'],
            $sessionCookie['secure'],
            true);

        // save the cookie in the DB
        $cookie->persist($user);
    }
private function sendRememberMeCookie ( UserInterface $ user , RememberMeCookie $ cookie , Response $ res ) { // send the cookie with the same properties as the session cookie $ sessionCookie = session_get_cookie_params ( ) ; $ res -> setCookie ( $ this -> rememberMeCookieName ( ) , $ cookie -> encode ( ) , $ cookie -> getExpires ( time ( ) ) , $ sessionCookie [ 'path' ] , $ sessionCookie [ 'domain' ] , $ sessionCookie [ 'secure' ] , true ) ; // save the cookie in the DB $ cookie -> persist ( $ user ) ; }
Stores a remember me session cookie on the response.

@param UserInterface    $user
@param RememberMeCookie $cookie
@param Response         $res
Stores a remember me session cookie on the response .