In medicine and health sciences mixed effects models are often used to study time-structured data. Optimal designs for such studies have been shown useful to improve the precision of the estimators of the parameters. However, optimal designs for such studies are often derived under the assumption of a zero autocorrelation between the errors, especially for binary data. Ignoring or misspecifying the autocorrelation in the design stage can result in loss of efficiency. This paper addresses robustness of Bayesian D-optimal designs for the logistic mixed effects model for longitudinal data with a linear or quadratic time effect against incorrect specification of the autocorrelation. To find the Bayesian D-optimal allocations of time points for different values of the autocorrelation, under different priors for the fixed effects and different covariance structures of the random effects, a scalar function of the approximate variance-covariance matrix of the fixed effects is optimized. Two approximations are compared; one based on a first order penalized quasi likelihood (PQL1) and one based on an extended version of the generalized estimating equations (GEE). The results show that Bayesian D-optimal allocations of time points are robust against misspecification of the autocorrelation and are approximately equally spaced. Moreover, PQL1 and extended GEE give essentially the same Bayesian D-optimal allocation of time points for a given subject-to-measurement cost ratio. Furthermore, Bayesian optimal designs are hardly affected either by the choice of a covariance structure or by the choice of a prior distribution.