Forums

Session user

Colnem 17 Sep, 2022
Hi

In some case, {user:properties} are not reinitialised after change of login.
JFactory::getUser() is correct, but {session:user} or {user:properties} are not reinitialised.

Solution:
Add a PHP module in your first page called after login. In this module, initialise $_SESSION['gcore']['user']['properties'].
Example:

$_SESSION['gcore']['user']['username']=JFactory::getUser()->username;
$_SESSION['gcore']['user']['name']=JFactory::getUser()->name;
$_SESSION['gcore']['user']['email']=JFactory::getUser()->email;

Salute from France
You need to login to be able to post a reply.