In order to read the cookie configuration from include/config/globa.inc.php the session must begin after this has been included.