mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:50:12 +00:00
Fix session size problems
This commit is contained in:
parent
fe53533cf6
commit
6a376c29d8
3 changed files with 6 additions and 4 deletions
|
@ -128,7 +128,9 @@ class Session
|
|||
continue;
|
||||
}
|
||||
|
||||
$_SESSION['remote'][] = ['cid' => $contact['id'], 'uid' => $contact['uid'], 'url' => $_SESSION['my_url']];
|
||||
/// @todo Change it to this format to save space
|
||||
// $_SESSION['remote'][$contact['uid']] = $contact['id'];
|
||||
$_SESSION['remote'][$contact['uid']] = ['cid' => $contact['id'], 'uid' => $contact['uid']];
|
||||
}
|
||||
DBA::close($remote_contacts);
|
||||
|
||||
|
|
|
@ -1130,7 +1130,7 @@ class Profile
|
|||
continue;
|
||||
}
|
||||
|
||||
$_SESSION['remote'][] = ['cid' => $contact['id'], 'uid' => $contact['uid'], 'url' => $visitor['url']];
|
||||
$_SESSION['remote'][$contact['uid']] = ['cid' => $contact['id'], 'uid' => $contact['uid']];
|
||||
}
|
||||
|
||||
$a->contact = $visitor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue