Encrypt fixes, add carnum options, remove debug lines
This commit is contained in:
parent
f580994bf4
commit
9340a49b67
@ -105,7 +105,14 @@ class StaticFunctions {
|
||||
}
|
||||
|
||||
public function killSession() {
|
||||
session_unset();
|
||||
$_SESSION = array();
|
||||
if (ini_get("session.use_cookies")) {
|
||||
$params = session_get_cookie_params();
|
||||
setcookie(session_name(), '', time() - 42000,
|
||||
$params["path"], $params["domain"],
|
||||
$params["secure"], $params["httponly"]
|
||||
);
|
||||
}
|
||||
session_destroy();
|
||||
session_write_close();
|
||||
header("Location: index.php");
|
||||
|
Loading…
Reference in New Issue
Block a user