diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-01-09 17:50:01 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-01-09 17:50:01 +0000 |
commit | 980d240e6263346cfc624acbd1d3097c8e28a885 (patch) | |
tree | e23cccc33c1e481b56c9fd5ac583a40f8c7835cb /services/userservice.php | |
parent | ef9143907f1ea6600a6c66065f0e18ac42f3535b (diff) | |
download | semanticscuttle-980d240e6263346cfc624acbd1d3097c8e28a885.tar.gz semanticscuttle-980d240e6263346cfc624acbd1d3097c8e28a885.tar.bz2 |
Bug corrected: cookie not deleted when logout
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@4 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/userservice.php')
-rw-r--r-- | services/userservice.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/userservice.php b/services/userservice.php index b585388..4a7cd4f 100644 --- a/services/userservice.php +++ b/services/userservice.php @@ -158,7 +158,7 @@ class UserService { $id = $_SESSION[$this->getSessionKey()] = $row[$this->getFieldName('primary')]; if ($remember) { $cookie = $id .':'. md5($username.$password); - setcookie($this->cookiekey, $cookie, time() + $this->cookietime); + setcookie($this->cookiekey, $cookie, time() + $this->cookietime, '/'); } return true; } else { @@ -167,8 +167,8 @@ class UserService { } function logout() { - @setcookie($this->cookiekey, NULL, time() - 1); - unset($_COOKIE[$this->cookiekey]); + @setcookie($this->getCookiekey(), '', time() - 1, '/'); + unset($_COOKIE[$this->getCookiekey()]); session_unset(); $this->getCurrentUser(TRUE, false); } |