Index: wp-login.php
===================================================================
--- wp-login.php	(revision 21420)
+++ wp-login.php	(working copy)
@@ -620,6 +620,8 @@
 		}
 
 		if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
+			wp_set_current_user( $user->ID );
+
 			// If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
 			if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) )
 				$redirect_to = user_admin_url();
