From: Michael Vogel Date: Mon, 25 Apr 2016 18:43:40 +0000 (+0200) Subject: Minor session stuff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6065fca2439f349ab23dae5ab4ce440187850ce7;p=friendica.git Minor session stuff --- diff --git a/include/auth.php b/include/auth.php index be4d6d8a03..5b639f5b0b 100644 --- a/include/auth.php +++ b/include/auth.php @@ -4,8 +4,9 @@ require_once('include/datetime.php'); function nuke_session() { - new_cookie(0); // make sure cookie is deleted on browser close, as a security measure + new_cookie(-3600); // make sure cookie is deleted on browser close, as a security measure session_unset(); + session_destroy(); } // When the "Friendica" cookie is set, take the value to authenticate and renew the cookie.