/** * @return boolean Whether the session has started */ public function getIsStarted() { if (function_exists('session_status')) { return session_status() != PHP_SESSION_NONE; } else { return parent::getIsStarted(); } }