diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 01db7a6..10a3a73 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2102,7 +2102,7 @@ function drupal_array_merge_deep_array($arrays) {
  * @return Object - the user object.
  */
 function drupal_anonymous_user() {
-  $user = new stdClass();
+  $user = variable_get('drupal_anonymous_user_object', new stdClass);
   $user->uid = 0;
   $user->hostname = ip_address();
   $user->roles = array();
