* Returns all user sessions for a specific user.
*
* @return \wcf\system\session\Session[]
+ * @since 5.4
*/
public function getUserSessions(User $user): array {
if ($user->userID === 0) {
* Returns all acp sessions for a specific user.
*
* @return \wcf\system\session\Session[]
+ * @since 5.4
*/
public function getAcpSessions(User $user): array {
if ($user->userID === 0) {
/**
* Deletes the user sessions for a specific user, except the session with the given session id.
* If the given session id is null or unknown, all sessions for the user will be deleted.
+ *
+ * @since 5.4
*/
public function deleteUserSessionsExcept(User $user, ?string $sessionID = null): void {
if ($user->userID === 0) {
/**
* Deletes the acp sessions for a specific user, except the session with the given session id.
* If the given session id is null or unknown, all acp sessions for the user will be deleted.
+ *
+ * @since 5.4
*/
public function deleteAcpSessionsExcept(User $user, ?string $sessionID = null): void {
if ($user->userID === 0) {
/**
* Deletes a user session with the given session id.
+ *
+ * @since 5.4
*/
public function deleteUserSession(string $sessionID): void {
$sql = "DELETE FROM wcf".WCF_N."_user_session
/**
* Deletes a acp session with the given session id.
+ *
+ * @since 5.4
*/
public function deleteAcpSession(string $sessionID): void {
$sql = "DELETE FROM wcf".WCF_N."_acp_session