php
if ($currentUser === false) {
// Umm... this user has a session cookie with a userId set, but no user exists...
Session::restart();
}
if ($currentUser->getForceLogout()) {
Session::restart();
$currentUser->setForceLogout(false);
$currentUser->save();
}Description
Description