How to update session after changing a user's role

Have you by any chance managed to resolve this issue?