Hello !
just make the ob_start before session_start.
PHP: session_start - Manual[
^]
this case is fixed when you know that ob_start() is a new buffer creation, like does session_start()...
it's a conflict about buffer resources.
ob_start() maje the buffer area empty, so the session vars are deleted..
ob_start();
session_start();