<?php session_start(); ?> <html> <head> <title>Accéder à une variable de session</title> </head> <body> <div> <h1>Contenu de la page</h1> <?php if ( is_array( $_SESSION['produits'] ) ) { print "<b>Votre pannier:</b><ol> "; foreach ( $_SESSION['produits'] as $p ) { print "<li>$p</li>"; } print "</ol>"; } ?> <a href="tabSession.php">Retourner à la page de choix</a> </div> </body> </html>