appendContent('

SessionException attrapée

'); } catch (Exception $e) { $webPage->appendContent('

Problème rencontré

'); $webPage->appendContent('

'.$e->getMessage().'

'); } if (isset($_SESSION)) { $webPage->appendContent('

Session démarrée

'); } else { $webPage->appendContent('

Session NON démarrée

'); } echo $webPage->toHTML();