Details
-
Bug
-
Resolution: Fixed
-
High
-
4.1.0
-
None
Description
This is the patch for the issue only:
Index: kernel/classes/datatypes/ezuser/ezuser.php =================================================================== --- kernel/classes/datatypes/ezuser/ezuser.php (revision 23242) +++ kernel/classes/datatypes/ezuser/ezuser.php (working copy) @@ -985,10 +985,10 @@ // Set/overwrite the global user, this will be accessed from // instance() when there is no ID passed to the function. $GLOBALS["eZUserGlobalInstance_"] = $user; - $http->setSessionVariable( 'eZUserLoggedInID', $userID ); eZSession::setUserID( $userID ); + $http->setSessionVariable( 'eZUserLoggedInID', $userID ); + self::cleanup(); eZSession::regenerate(); - $user->cleanup(); } /*!
The full patch also fixes:
- issue where ::instance() will not cache the current users object (so re fetched on each call)
- minor code optimizations
How to patch 4.1.0 (the easy way):
- download the attached ezuser.php file and place it in "kernel\classes\datatypes\ezuser\" (overwriting the existing one)
- logout and in again
- clear sessions in admin if you want to force others to login as well (/setup/session)