protected function prepareCookie(string $name, string $value)
    {
        return new Cookie(
            $name,
            $value,
            0,
            $this->sessionSettings['cookie']['lifetime'],
            $this->sessionSettings['cookie']['domain'],
            $this->sessionSettings['cookie']['path'],
            $this->sessionSettings['cookie']['secure'],
            $this->sessionSettings['cookie']['httponly']
        );
    }
protected function prepareCookie(string $name, string $value)
    {
        return new Cookie(
            $name,
            $value,
            0,
            $this->sessionSettings['cookie']['lifetime'],
            $this->sessionSettings['cookie']['domain'],
            $this->sessionSettings['cookie']['path'],
            $this->sessionSettings['cookie']['secure'],
            $this->sessionSettings['cookie']['httponly']
        );
    }
protected function prepareCookie ( string $ name , string $ value ) { return new Cookie ( $ name , $ value , 0 , $ this -> sessionSettings [ 'cookie' ] [ 'lifetime' ] , $ this -> sessionSettings [ 'cookie' ] [ 'domain' ] , $ this -> sessionSettings [ 'cookie' ] [ 'path' ] , $ this -> sessionSettings [ 'cookie' ] [ 'secure' ] , $ this -> sessionSettings [ 'cookie' ] [ 'httponly' ] ) ; }
Prepares a cookie object for the session.

@param string $name
@param string $value
@return Cookie
Prepares a cookie object for the session .