File: bienvenue.php - Tab length: 1 2 4 8 - Lines: on off - No wrap: on off


<html>
<head>
 <meta charset="UTF-8" />

     <title> Session </title>
  <?php
       session_start();
    if($_SESSION['loggedin'] == false)
    {
        header("location:index.php?problem=notLoggedIn");
     exit;
    }
   
    $name = $_SESSION['name'];
    ?>
    </head>
   
    <body>
    <h1> Bonjour,
    <?php print ($name) ; ?>
    </h1>
    <form id ="form1" name="form1" method="post" action="logoff.php">
    <p>
     <input type="submit" name="loginButton" id="loginButton" value="D�connexion"/>
     </p>
     </form>
     </body>
     </html>