mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
Only remove the "remember me" cookie at submitting the auth form
Fixes loss of remember (Friendica) cookie on switching Managed accounts
This commit is contained in:
parent
df6304cc42
commit
cbaf196f50
2 changed files with 4 additions and 3 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue