I'm writing a customization to assign dinamically a group to a user based upon a specific value of a parameter. I mean that if:
"User A" has attribute "field1" =="1" --> is assigned to group "groupfield1".
I have only one issue, if a user modify the "field1" value the Group assignment doesn't change because is loaded during Login.
The question is:
Is there a way to programmatically refresh the array: $userinfo['_mem_of_groups'] values without perfoming Logout/Login again?
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Joined: Apr 19, 2004