protected bool ExistInSession() { try { EmpleadosCOM empleados = new EmpleadosCOM(); DataTable dt = empleados.sp_existe_usuario_sesiones( Session["usuario"] as string, Session["os"] as string, Session["os_vers"] as string, Session["browser"] as string, Session["device"] as string).Tables[0]; return(Convert.ToBoolean(dt.Rows[0]["existe"])); } catch (Exception ex) { Toast.Error("Error al verificar sesion: " + ex.Message, this.Page); return(true); } }