mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +00:00
Fix double login issue
- Removed session existence check in killme - Changed returned value in session_write for empty data
This commit is contained in:
parent
7a6706b0f7
commit
b6f60c45aa
2 changed files with 6 additions and 8 deletions
|
@ -61,10 +61,14 @@ function ref_session_write($id, $data)
|
|||
{
|
||||
global $session_exists, $session_expire;
|
||||
|
||||
if (!$id || !$data) {
|
||||
if (!$id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$data) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$expire = time() + $session_expire;
|
||||
$default_expire = time() + 300;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue