summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubdee <info@subdee.org>2016-04-08 19:18:50 +0200
committersubdee <info@subdee.org>2016-04-08 19:18:50 +0200
commit6c1065c3ca6708dca2512cd98ba23c0f942a38c0 (patch)
tree63c3474419055235b8e4110f70872ad003608859
parent39131a68ad46524805b5e1350ec8067804651d37 (diff)
downloadsso-6c1065c3ca6708dca2512cd98ba23c0f942a38c0.zip
sso-6c1065c3ca6708dca2512cd98ba23c0f942a38c0.tar.gz
sso-6c1065c3ca6708dca2512cd98ba23c0f942a38c0.tar.bz2
Specify path for cookie in order to remove it properly afterwards
-rw-r--r--src/Broker.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Broker.php b/src/Broker.php
index ebebded..3daf3ed 100644
--- a/src/Broker.php
+++ b/src/Broker.php
@@ -95,7 +95,7 @@ class Broker
if (isset($this->token)) return;
$this->token = base_convert(md5(uniqid(rand(), true)), 16, 36);
- setcookie($this->getCookieName(), $this->token, time() + 3600);
+ setcookie($this->getCookieName(), $this->token, time() + 3600, '/');
}
/**
@@ -103,7 +103,7 @@ class Broker
*/
public function clearToken()
{
- setcookie($this->getCookieName(), null, 1);
+ setcookie($this->getCookieName(), null, 1, '/');
$this->token = null;
}