--- kernel/classes/datatypes/ezuser/ezuser.php	2007-08-10 17:27:41.000000000 +0200
+++ kernel/classes/datatypes/ezuser/ezuser.php	2007-08-10 17:35:55.000000000 +0200
@@ -980,8 +980,8 @@
     */
     function loginCurrent()
     {
-        eZHTTPTool::setSessionVariable( 'eZUserLoggedInID', $this->ContentObjectID );
-        eZSessionSetUserID( $this->ContentObjectID );
+        eZHTTPTool::setSessionVariable( 'eZUserLoggedInID', $this->id() );
+        $this->setCurrentlyLoggedInUser( $this, $this->id() );
         $this->cleanup();
     }
 
@@ -2208,4 +2208,4 @@
     var $OriginalPasswordConfirm;
 }
 
-?>
+?>
\ No newline at end of file
