Ejemplo n.º 1
0
        internal static void Dispose()
        {
            //OnlineStatic os = OnlineStaticHelper.Select(Session.SessionID);
            //os.LastTime = DateTime.Now;
            //OnlineStaticHelper.Update(Session.SessionID, os);

            OnlineStaticHelper.Delete(Session.SessionID);
            AuthRules.SignOut();
            Session.Abandon();
            HttpContext.Current.Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
        }
Ejemplo n.º 2
0
        internal static void Create(ManagerInfo cust)
        {
            Session.SetValue <int>(SessionKey.UserId, cust.AdminID);
            AuthRules.SetAuthCookie(new SessionData {
                UserID = cust.AdminID.ToString(), SessionID = Session.SessionID
            });
            OnlineStaticHelper.Create(Session.SessionID, new OnlineStatic {
                Id = cust.AdminID, LastTime = DateTime.Now
            });

            //OnlineStaticHelper.Create(Session.SessionID, new OnlineStatic { Id = cust.AdminID, LastTime = DateTime.Now });
        }