Modified copy_for_session_user().