diff --git a/language_cookie.module b/language_cookie.module
index 28684c4..8d50a46 100644
--- a/language_cookie.module
+++ b/language_cookie.module
@@ -95,8 +95,13 @@ function language_cookie_set($lang = NULL) {
   $cookie->secure = FALSE;
   $cookie->httponly = FALSE;
 
-  // Allow other modules to alter the cookie.
-  drupal_alter('language_cookie', $cookie);
+  // Allow other modules to alter the cookie. Include bootstrap modules
+  // only as this is being called during hook_boot().
+  // @see bootstrap_invoke_all()
+  foreach (module_list(FALSE, TRUE) as $module) {
+    drupal_load('module', $module);
+    module_invoke($module, 'language_cookie_alter', $cookie);
+  }
 
   setrawcookie(
     $cookie->name,
