Fix getting session name, closes #75

This commit is contained in:
Bartek Fabiszewski 2018-12-05 12:09:45 +01:00
parent 058ab0d10d
commit 12778505e5

View File

@ -86,9 +86,9 @@
*/ */
private function sessionEnd() { private function sessionEnd() {
$_SESSION = []; $_SESSION = [];
if (ini_get("session.use_cookies")) { if (ini_get("session.use_cookies") && isset($_COOKIE[session_name()])) {
$params = session_get_cookie_params(); $params = session_get_cookie_params();
setcookie(session_name('ulogger'), '', time() - 42000, setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"], $params["path"], $params["domain"],
$params["secure"], $params["httponly"] $params["secure"], $params["httponly"]
); );