- <?php
- $root = $_SERVER['DOCUMENT_ROOT'];
- include($root . "/util/session.php"); //checks that the user is logged in
- if (isset($_SESSION['chapterPanel'])) {
- unset($_SESSION['questionAdd']);
- unset($_SESSION['chapterPanel']);
- } else if (isset($_SESSION['subjectPanel'])) {
- unset($_SESSION['subjectPanel']);
- }
- header("location: teacher.php");
|