Thread:Project:Support desk/user real name not updating

$wgHooks['UserLoadFromSession'][] = 'onUserLoadFromSession'; function onUserLoadFromSession( $user, &$result ) { if(isset($_SERVER['HTTP_SM_USER'])){ $employee_id = 'test'; $user = User::newFromName($employee_id); $user->setToken; $user->saveSettings; wfSetupSession; $user->setCookies; $user = User::newFromName($employee_id); return true; } doing login like this, bcoz user name im getting from some other source, but if i update user_real_name in mwuser it is not reflecting in front end, even once i load the page automatically the old value is reflecting in db also, what is the issue exactly.