Hi,
I have a problem with the (IsOnline) feature at my web site, Actually it works well as long as i'm doing activities even if i just navigate through the web site. The problem occure when i leave my browser open with doing nothing at the web site, just leave it open, it consider me Offline and remove the Check mark from the field "IsOnline"
I dont know how should i mentain user status or do something fix this.
I user SQLSERVER 2000, and the membership method as the following
I have a problem with the (IsOnline) feature at my web site, Actually it works well as long as i'm doing activities even if i just navigate through the web site. The problem occure when i leave my browser open with doing nothing at the web site, just leave it open, it consider me Offline and remove the Check mark from the field "IsOnline"
I dont know how should i mentain user status or do something fix this.
I user SQLSERVER 2000, and the membership method as the following
Code:
protected void Page_Load(object sender, System.EventArgs e) { lblStatus.Visible = false; if (!IsPostBack) bind(); } private void bind() { dt = MyGetAllUsers(); grdUsers.DataSource = dt; grdUsers.DataBind(); } protected DataTable MyGetAllUsers() { muc = Membership.GetAllUsers(); dt.Columns.Add("UserName", Type.GetType("System.String")); dt.Columns.Add("Email", Type.GetType("System.String")); dt.Columns.Add("CreationDate", Type.GetType("System.DateTime")); dt.Columns.Add("IsOnline", Type.GetType("System.Boolean")); dt.Columns.Add("IsLockedOut", Type.GetType("System.Boolean")); foreach (MembershipUser mu in muc) { DataRow dr; dr = dt.NewRow(); dr["UserName"] = mu.UserName; dr["Email"] = mu.Email; dr["CreationDate"] = mu.CreationDate; dr["IsOnline"] = mu.IsOnline; dr["IsLockedOut"] = mu.IsLockedOut; dt.Rows.Add(dr); } return dt; } }
Comment