Skip to content

Commit

Permalink
Fix problems with existing sessions
Browse files Browse the repository at this point in the history
Signed-off-by: jdarwood007 <unmonitored+github@sleepycode.com>
  • Loading branch information
jdarwood007 committed Nov 4, 2013
1 parent dcb14c2 commit 2d168b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Auth_SMF.php
Expand Up @@ -286,9 +286,12 @@ function AutoAuthenticateSMF ($initial_user_data, &$user)
$user->saveSettings();
}

// Go ahead and log 'em in
wfSetupSession();
$user->setCookies();
// Go ahead and log 'em in, but only if the session isn't already going.
if (session_id() === '')
{
wfSetupSession();
$user->setCookies();
}

return true;
}
Expand Down

0 comments on commit 2d168b4

Please sign in to comment.