public bool EnterIsNewUser(UserState user, SessionState session) { bool newUser = user.LastEnter < DateTime.Now - TimeSpan.FromDays(15); user.LastEnter = DateTime.Now; session.Clear(); session.Step = SessionStep.AwaitNames; return(newUser); }
/// <summary> /// Clears the data stored in the last storage transaction. /// </summary> public void ClearLastSession() { SessionState.Clear(); _keys = null; }