Accessing session data outside Joomla

前端 未结 15 1500
小鲜肉
小鲜肉 2020-12-08 03:36

I am trying to run an application outside Joomla (not as a plugin) and I would like to access the logged in user\'s information (userid). I am wondering how should I go abou

15条回答
  •  盖世英雄少女心
    2020-12-08 04:10

    apply this in mod_login.php

    After: $user =& JFactory::getUser();

    echo "

    Your usertype is {$user->usertype} which has a group id of {$user->gid}.

    ";

提交回复
热议问题