note 75074 rejected from function.exit by didou
| From: | didou@php.net | Date: | Sun, 30 Dec 2007 13:52:31 +0000 |
| Subject: | note 75074 rejected from function.exit by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134287@lists.php.net to get a copy of this message | ||
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");
}