My site has multiple users who can log in and out. I have a page titled 'logout.php' The code is listed below:
Currently with this code, when a user logs out they are directed to the homepage but I would like them to be directed to a thank you page that says they are logged out.PHP Code:<?PHP
include_once("common.php");
include_once("cookie.class.php");
include_once("users.class.php");
session_destroy();
$cookie = new Cookie();
$cookie->delete_cookie('login');
setcookie('SMFCookie10', NULL, time()-3600);
header("Location: " . URL_ABSOLUTE );
?>
Does anyone know how I can implement this using the code above?
Thanks


Reply With Quote
Bookmarks