Fixed CLI usage of session agg (do not use setcookie but $_COOKIE instead and avoid using $_SERVER['REMOTE_ADD'])