private static function get_cookie_settings($type) {
	$name      = self::get_cookie_name($type);
	$duration  = self::$type_durations[$type];
	$domain    = $_SERVER['SERVER_NAME'];
	$path      = '/';
	$secure    = !empty($_SERVER['HTTPS']) ? true : false;
	$http_only = true;
	
	return [
		'name'      => $name,
		'duration'  => $duration,
		'domain'    => $domain,
		'path'      => $path,
		'secure'    => $secure,
		'http_only' => $http_only,
	];
}