note 75074 rejected from function.exit by didou

[email protected]
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");
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.