welcome.php 403 B

12345678910111213141516171819202122
  1. <?php
  2. session_start();
  3. if ( !isset($_SESSION['user']) )
  4. {
  5. header('Location: signin.php');
  6. exit();
  7. }
  8. ?>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <meta charset="utf-8">
  13. <title>My account</title>
  14. </head>
  15. <body>
  16. <p>
  17. Hello <?= $_SESSION['user']; ?> !<br>
  18. Welcome on your account.
  19. </p>
  20. <p><a href="signout.php">Sign out</a></p>
  21. </body>
  22. </html>