1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 14:23:05 +02:00

Merge branch 'dev' of https://github.com/derixithy/processwire into derixithy-dev

This commit is contained in:
Ryan Cramer
2016-11-18 12:28:39 -05:00
3 changed files with 10 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ class SessionHandlerDB extends WireSessionHandler implements Module, Configurabl
$query = $database->prepare("DELETE FROM `$table` WHERE id=:id");
$query->execute(array(":id" => $id));
$secure = $this->wire('config')->sessionCookieSecure ? (bool) $this->config->https : false;
setcookie(session_name(), '', time()-42000, '/', null, $secure, true);
setcookie(session_name(), '', time()-42000, '/', $this->config->sessionCookieDomain, $secure, true);
return true;
}