From 2c75a0fefce8238aa08da971d49609fc22fcd26b Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 25 Apr 2016 20:43:40 +0200 Subject: [PATCH] Minor session stuff --- include/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.5