drupal - What could cause $user to change while logged in? -
i seeing weird bug after logging in user "foo" username in logged in block shows "bar" i.e. $user object has somehow switched foo bar.
i've checked custom modules , theme make sure there no voodoo going on when use global $user; no leads.
also placed additional watchdog messages inside user_authenticate , user_authenticate_finalize user object seems behaving.
how else can track error down?
a user switch can happen simple code : global $user; $some_user = user_load('uid' => some_uid); $user = $some_user;
perhaps can try looking @ assignments last 1 or uses of global $user
Comments
Post a Comment