note 75074 rejected from function.exit by didou
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: brianbtn at bellsouth dot net
----
how do I redirect back to the login page after someone clicks logout by using the passwordProtectedsite.php?logout=1
HERE IS THE CODE FROM PASSWORD_PROTECT.PHP
// logout?
if(isset($_GET['logout'])) {
setcookie("verify", '', $timeout, '/'); // clear password;
exit("Logged Out");
}