Okay tell the redirect to go to: /?logout
This is a GET query. So where you want the message to appear put the following code:
- PHP: Select all
if (isset($_GET['logout'])) {
echo "You have logged out";
}
This basically says "If
logout came in the URL succeeding a question mark then say this".