X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fauth.php;h=57e9d9bf61dc82a6f2adc21da27b92f9fb605ff8;hb=9521f39ebea7603098e4f96f5edb6c85a40fc646;hp=62ca3563a414488820f2d2bf211078dd0dfeaa45;hpb=df6304cc423db5efceedfa4a523425e011f65d96;p=friendica.git diff --git a/include/auth.php b/include/auth.php index 62ca3563a4..57e9d9bf61 100644 --- a/include/auth.php +++ b/include/auth.php @@ -179,6 +179,10 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params' goaway(z_root()); } + if (! $_POST['remember']) { + new_cookie(0); // 0 means delete on browser exit + } + // if we haven't failed up this point, log them in. $_SESSION['remember'] = $_POST['remember']; $_SESSION['last_login_date'] = datetime_convert('UTC','UTC');