We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • discuss.answer
    • 3749
    • 24,544 Posts
    I wish I could come up with why that would happen and save you the trouble. Good luck. smiley

    Here's some simple code you could put in a test snippet that just checks the users status with no chunks involved. It also reports the current context. If it gives you the right answer, you should be able to replace it with the Personalize snippet tag:


    <?php
    /* LoginCheck snippet */
    $ctx = $modx->context->get('key');
    $loggedIn = $modx->user->hasSessionContext($ctx);
    
    if ($loggedIn) {
        return 'User is logged in to the ' . $ctx . ' context' ;
    } else {
        return  'User is NOT logged in to the ' . $ctx . ' context';
    }
    




    ------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using.
    MODX info for everyone: http://bobsguides.com/modx.html [ed. note: BobRay last edited this post 11 years, 11 months ago.]
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
    • discuss.answer
      • 39927
      • 46 Posts
      Ahhhhhh .... finally!

      That works beautifully, Bob! THANKS! LOL -- what a relief!
        Alan
        --------------------------------------------------------
        MODX Revolution 2.2.2-pl