Added ob_start and ob_flush before session_start