Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Clears the data stored in the last storage transaction.
 /// </summary>
 public void ClearLastSession()
 {
     SessionState.Clear();
     _keys = null;
 }