Example #1
0
 // Token: 0x060002EE RID: 750 RVA: 0x0000B70C File Offset: 0x0000990C
 public static void UpdateOnlineState(int uid, int timeout, int onlinefrequency)
 {
     if (uid > 0)
     {
         UserBll.UpdateUserState(uid, 1);
     }
     if (UserBll._lastRemoveTimeout == 0 || Environment.TickCount - UserBll._lastRemoveTimeout > 60000 * onlinefrequency)
     {
         UserBll.UpdateExpiredOnlineUsers(timeout);
         UserBll._lastRemoveTimeout = Environment.TickCount;
     }
     WMSCookie.WriteCookie("lastactivity", FPUtils.GetDateTime());
 }
Example #2
0
        // Token: 0x0600003F RID: 63 RVA: 0x00004128 File Offset: 0x00002328
        public static DateTime GetLastCookieTime()
        {
            string dateTime = FPUtils.GetDateTime(WMSCookie.GetCookie("lastactivity"));

            return(Convert.ToDateTime(dateTime));
        }