It is not possible to check HTTPS by $_SERVER['HTTPS'] and therefore it is not possible to set SESSION_COOKIE_SECURE constant