We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2449
    • 11 Posts
    I ended up just specifying by webShortname, this won’t pose a security flaw if they were to some how change their SESSION information would they?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Those were some artifacts and bugs in the WebLoginPE snippet. I’ve corrected them. Now on the article on sessions on my site you get the array of web groups the user belongs to.
      [webUserGroupNames] => Array
      (
      [0] => testing
      [1] => testing2
      [2] => testing3
      )

        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Web shortname is just their login name. Are you using webloginpe, or the weblogin snippet that comes with the MODx installation?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 2449
          • 11 Posts
          Quote from: sottwell at Jul 02, 2010, 01:11 PM

          Web shortname is just their login name. Are you using webloginpe, or the weblogin snippet that comes with the MODx installation?

          Just the WebLogin
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            then your session will display the webgroup names. It was a bug in WebLoginPE that wasn’t displaying them.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 19831
              • 2 Posts
              I’m trying to accomplish something along the same lines where I’ve got two web user groups and I want to send the users of each group to a different profile page.

              When checking the session info I’m running into the empty array issue. (I’m using webLoginPE) Is there a fairly simple workaround for this, or do I need to switch back to webLogin?