src/session.php
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,
	];
}
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,
	];
}
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 , ] ; }
returns all keys needed for session cookie management

@param  string $type one of the ::TYPE_* consts
@return array        keys 'name', 'duration', 'domain', 'path', 'secure', 'http_only'
returns all keys needed for session cookie management