We consider a modified Cahn-Hiliard equation where the velocity of the order parameter u depends on the past history of Δμ, μ being the chemical potential with an additional viscous term αu t , α 0. This type of equation has been proposed by P. Galenko et al. to model phase separation phenomena in special materials (e.g., glasses). In addition, the usual noflux boundary condition for u is replaced by a nonlinear dynamic boundary condition which accounts for possible interactions with the boundary. The resulting boundary value problem is subject to suitable initial conditions and is reformulated in the socalled past history space. Existence of a variational solution is obtained. Then, in the case α > 0, we can also prove uniqueness and construct a strongly continuous semigroup acting on a suitable phase space. We show that the corresponding dynamical system has a (smooth) global attractor as well as an exponential attractor. In the case α = 0, we only establish the existence of a trajectory attractor.(1.6) Equation (1.6) has received lot of attention in the last years. The viscous three-dimensional case has been firstly analyzed in [21] (see also [34,35]). It is worth observing that, in this case, the solutions regularize C. Cavaterra et al. / Cahn-Hilliard equations with memory and dynamic boundary conditions 125in finite time (as in the classical case = 0). The nonviscous case is much more troublesome even in dimension two, since there is a lack of regularization effects (a sort of "hyperbolic" behavior). Only recently, the understanding of the case α = 0 has significantly improved (see [28][29][30]). For the simpler one-dimensional case, the reader is referred to [1] and its references. Equation (1.5) with a more general memory kernel (which does not allow to write an equivalent PDE) has been firstly studied in [22] in the one dimensional nonviscous case (see also [23] for no-flux boundary conditions). The corresponding dynamical system has been analyzed within the past history setting with particular regard to the stability with respect to the relaxation time. The three-dimensional nonisothermal nonviscous case has been considered in [39] and the existence of a (weak) solution has been proven. In the related paper [53], well-posedness and regularity results have been obtained by taking memory kernels which are singular at 0. We recall that this assumption, contrary to nonsingular kernels, produces regularization effects. More recently, Eq. (1.6) with α > 0 has been carefully analyzed in the spirit of [21]. This means that the kernel k has been rescaled with a relaxation time > 0 and the robustness properties of the dynamical system with respect to α and have been investigated. In particular, the authors have constructed a family of exponential attractors which is continuous as (α, ) goes to (0, 0), provided that is dominated by α. Of course, the latter restriction is expected due to the difficulties arising in the relaxed nonviscous case. In other words, the dynamical system (in the history phase space) genera...