Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/engine/PhabricatorAuthSessionEngine.php
| Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | $sessions = id(new PhabricatorAuthSessionQuery()) | ||||
| ->execute(); | ->execute(); | ||||
| if ($except_session !== null) { | if ($except_session !== null) { | ||||
| $except_session = PhabricatorHash::digest($except_session); | $except_session = PhabricatorHash::digest($except_session); | ||||
| } | } | ||||
| foreach ($sessions as $key => $session) { | foreach ($sessions as $key => $session) { | ||||
| if ($except_session !== null) { | if ($except_session !== null) { | ||||
| if ($except_session == $session->getSessionKey()) { | $is_except = phutil_hashes_are_identical( | ||||
| $session->getSessionKey(), | |||||
| $except_session); | |||||
| if ($is_except) { | |||||
| continue; | continue; | ||||
| } | } | ||||
| } | } | ||||
| $session->delete(); | $session->delete(); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines | |||||