avoid notice A session had already been started code example Example: php remove notice session already been started if(!isset($_SESSION)) { session_start(); }