Neco.Backend/SessionManager.cs
/// <summary>Removes all sessions for the specified user</summary>
/// <param name="UserID"></param>
/// <returns>Number of sessions logged out of</returns>
Removes all sessions for the specified user
Removes all sessions for the specified user
public int LogOutAll(string UserID) {
            ICollection<Session> Ss = Sessions.Where(S => S.UserID == UserID).ToList();
            foreach (Session S in Ss) { Sessions.Remove(S);}
            return Ss.Count;
        }
public int LogOutAll ( string UserID ) { ICollection < Session > Ss = Sessions . Where ( S => S . UserID == UserID ) . ToList ( ) ; foreach ( Session S in Ss ) { Sessions . Remove ( S ) ; } return Ss . Count ; }
Removes all sessions for the specified user
Removes all sessions for the specified user
Number of sessions logged out of
Number of sessions logged out of
UserID
string
None