$_SESSION['uname'], "uid" => $_SESSION['uid'], "realname" => $_SESSION['realname'])); // redirecting pages $msg = ''; // unset admin cookie flag #setcookie('admin_logged_in', true, time()-86400, SWB); #setcookie('admin_logged_in', true, time()-86400, SWB, "", FALSE, TRUE); setcookie('admin_logged_in', TRUE, [ 'expires' => time()-86400, 'path' => SWB, 'domain' => '', 'secure' => false, 'httponly' => true, 'samesite' => 'Lax', ]); // completely destroy session cookie simbio_security::destroySessionCookie($msg, COOKIES_NAME, SWB.'admin/', true);