login_page = "login.php"; // change this only if your login is on another page $test_page_protect->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']); // set this method, including the server vars to protect your page and get redirected to here after login if (isset($_GET['action']) && $_GET['action'] == "log_out") { $test_page_protect->log_out(); // the method to log off } ?>
Now you have access to this testpage.
".$_SERVER['QUERY_STRING']."" : " "; ?>