diff --git a/boost.module b/boost.module
index 15ad887..68519e4 100644
--- a/boost.module
+++ b/boost.module
@@ -779,7 +779,7 @@ function boost_cookie_handler() {
   // logged in users. Also note that if we are processing a GET, it means that
   // we have already been through the htaccess rules, so the cookie has done
   // its job and can be removed.
-  if ($uid == 0 && $_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD') {
+  if ($uid == 0 && $_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD' && $_GET['q'] != 'system/ajax') {
     boost_set_cookie(-1);
   }
 }
