Fix getting session name, closes #75
This commit is contained in:
parent
058ab0d10d
commit
12778505e5
@ -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"]
|
||||||
);
|
);
|
||||||
@ -181,4 +181,4 @@
|
|||||||
header("Location: $location");
|
header("Location: $location");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user