X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fauth.php;h=a5b6432fff37c35cc31070eb7ae585129accfae1;hb=a0f3fe6fde55a61291ce96f657262c6b084b5894;hp=318b3d25800bd32b8404bf5b655e5f899a7db2d7;hpb=61956e109828a79c02af77d6d2d63c59096ea387;p=friendica.git 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)); }