goBack.php 351 B

123456789101112
  1. <?php
  2. $root = $_SERVER['DOCUMENT_ROOT'];
  3. include($root . "/util/session.php"); //checks that the user is logged in
  4. if (isset($_SESSION['chapterPanel'])) {
  5. unset($_SESSION['questionAdd']);
  6. unset($_SESSION['chapterPanel']);
  7. } else if (isset($_SESSION['subjectPanel'])) {
  8. unset($_SESSION['subjectPanel']);
  9. }
  10. header("location: teacher.php");