if (session_status() == PHP_SESSION_NONE) { session_start(); }
#you could just ignore warnings messages @session_start();