1
Hi!
I just wrote a script that checks whether a user fulfilled a form (created using Formulaire module). If it is the case, it checks whether this user belongs to a group we could name "special registered users", so to say.
IF the user belongs to this group, then it goes to a "special news category".
If it doesn't, the script adds this user to this user group and then goes to the "special news category".
And here's the problem: the user is added to the groups database succesfully, but it has to log out and then login for the changes to take effect. It seems like the $xoopsUser object not updating until login on again.
After lots of tries I now this is exactly the problem: the new groups and permissions of this user don't apply until he/she logs out and in again. $xoopsUser object doesn't update while in a session.
What can I do?
Thanks.