HCoop
/
clinton
/
MarylandElectronicPetitionSignature.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
004a78e
)
Update logout.php
author
Patrick McGuire
<insidenothing@gmail.com>
Wed, 6 May 2020 12:56:50 +0000
(08:56 -0400)
committer
GitHub
<noreply@github.com>
Wed, 6 May 2020 12:56:50 +0000
(08:56 -0400)
admin/logout.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/logout.php
b/admin/logout.php
index
6a8ee49
..
72192d0
100644
(file)
--- a/
admin/logout.php
+++ b/
admin/logout.php
@@
-4,5
+4,15
@@
foreach ( $_COOKIE as $key => $value ){
unset($_COOKIE[$key]);
setcookie($key, '', time() - 3600, '/');
}
+// unset cookies
+if (isset($_SERVER['HTTP_COOKIE'])) {
+ $cookies = explode(';', $_SERVER['HTTP_COOKIE']);
+ foreach($cookies as $cookie) {
+ $parts = explode('=', $cookie);
+ $name = trim($parts[0]);
+ setcookie($name, '', time()-1000);
+ setcookie($name, '', time()-1000, '/');
+ }
+}
header('Location: index.php');
?>