Get params cookie_domain
You can get the cookie domain this way using the session_configuration service.   

$sessionConfig =\Drupal::service('session_configuration');
// Get the current request.
$request = \Drupal::request();
// Get options from the request.
$options = $sessionConfig-&gt;getOptions($request);
$cookie_domain = $options['cookie_domain'];