note 75074 added to function.exit
| From: | brianbtn at bellsouth dot net | Date: | Fri, 11 May 2007 02:14:27 +0000 |
| Subject: | note 75074 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126400@lists.php.net to get a copy of this message | ||
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");
}
----
Server IP: 69.147.83.197
Probable Submitter: 74.237.144.65
----
Manual Page -- http://www.php.net/manual/en/function.exit.php
Edit -- https://master.php.net/note/edit/75074
Del: integrated -- https://master.php.net/note/delete/75074/integrated
Del: useless -- https://master.php.net/note/delete/75074/useless
Del: bad code -- https://master.php.net/note/delete/75074/bad+code
Del: spam -- https://master.php.net/note/delete/75074/spam
Del: non-english -- https://master.php.net/note/delete/75074/non-english
Del: in docs -- https://master.php.net/note/delete/75074/in+docs
Del: other reasons-- https://master.php.net/note/delete/75074
Reject -- https://master.php.net/note/reject/75074
Search -- https://master.php.net/manage/user-notes.php