This post has been archived and may contain out of date, or no longer relevant, information.

If you are using MODX in a server environment that runs Varnish you may experience weird logging out issues, in particular when using the “preview” feature from the manager.

This is due to cookie conflicts resulting in MODX forcing a logout and can easily be resolved by adding a rule to prevent caching Manager requests under vcl_recv VCL.

sub vcl_recv {

# MODX Manager
if (req.url ~ "^/manager/") {