From: Michael Vogel Date: Fri, 25 Dec 2015 18:57:38 +0000 (+0100) Subject: Yes is no and no is yes ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b94c4fe41049533ee74843ff20ecd05f49a994d;p=friendica.git Yes is no and no is yes ... --- diff --git a/include/auth.php b/include/auth.php index 318b3d2580..a5b6432fff 100644 --- a/include/auth.php +++ b/include/auth.php @@ -209,12 +209,12 @@ else { } function new_cookie($time) { - if (get_config('system', 'disable_database_session')) + if (!get_config('system', 'disable_database_session')) $old_sid = session_id(); session_set_cookie_params($time); - if (get_config('system', 'disable_database_session')) { + if (!get_config('system', 'disable_database_session')) { session_regenerate_id(false); q("UPDATE session SET sid = '%s' WHERE sid = '%s'", dbesc(session_id()), dbesc($old_sid)); }