We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22958
    • 50 Posts
    Hi All,

    Sorry, I don’t know this is the right forum to ask this or not ....

    *) How to get the GroupName of current logged in user if we know the userId via $modx->getLoginUserID(’mgr’) ?
    *) How to get the cookies value in Modx (Is it the same like normal php ways: $_COOKIE(’cookievariable’) ?

    Thanks.
    - pedma -
      • 22303 MODX Staff
      • 10,725 Posts
      See getUserDocGroups for getting user group information.

      All $_REQUEST variables (including $_COOKIE) are available in MODx as they would in any PHP script, though beware of caching scripts that depend on these variables, as you typically want scripts that use these variables to remain dynamic rather than being statically cached.
        • 22958
        • 50 Posts
        Quote from: OpenGeek at Feb 09, 2010, 10:39 AM

        See getUserDocGroups for getting user group information.

        All $_REQUEST variables (including $_COOKIE) are available in MODx as they would in any PHP script, though beware of caching scripts that depend on these variables, as you typically want scripts that use these variables to remain dynamic rather than being statically cached.

        Hi OpenGeek,

        Many thanks.

        - pedma -