We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2878
    • 81 Posts
    To force a logout on managers that really should only have control over their one page.
    I have them logging in from the frontend directed to their page using QuickEdit to manage their page. Just would like to force a logout on them when they navigate away from their page.
    Any ideas???

    Here’s the web site link > http://www.bonesofpa.info

    Thank you,
    bauhaus9
      • 23299
      • 1,161 Posts
      I can’t answer your question I am afraid.

      But as a bit of forum house cleaning I think you should make your question more specific. Its very vague and is posted in the general section of the forum...
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I’ve been considering this issue, and the only thing I can think of is for a plugin that tests if a user is a logged-in Manager user, and if he is, does he have business as such on that page. If he doesn’t, log him out.
          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
          • 2878
          • 81 Posts
          Quote from: Photowebmax at Jul 30, 2010, 03:32 PM

          I can’t answer your question I am afraid.

          But as a bit of forum house cleaning I think you should make your question more specific. Its very vague and is posted in the general section of the forum...

          Apologies on post location.
          I was not sure where to place this question.

          bauhaus9
            • 2878
            • 81 Posts
            Quote from: sottwell at Jul 30, 2010, 04:12 PM

            I’ve been considering this issue, and the only thing I can think of is for a plugin that tests if a user is a logged-in Manager user, and if he is, does he have business as such on that page. If he doesn’t, log him out.

            Thank you for reviewing the topic.
            Do you know of such a plug-in?

            bauhaus9
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              I’ve never heard of such a thing.
                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
                • 2878
                • 81 Posts
                Quote from: sottwell at Jul 30, 2010, 04:57 PM

                I’ve never heard of such a thing.

                Disregard statment below.
                I’m so dyslexic today.... embarrassed

                Could you PLEEEEZE give me more information. grin
                PLEEEEEEEEEEEEZZZZZEEEEE!

                bauhaus9
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I suppose one way would be to create a plugin using one of the events like onWebPageInit. Check if the user is logged in as a manager user, and if he is, fetch his login home Id. If that isn’t the same as the documentIdentifier, then just redirect him back to his login page and he’d have to logout using the QM logout button before he could go anywhere else.

                  The manager_login_startup can be found in the user_settings table. It’s a settings type table, so the query is a bit more involved:
                  SELECT setting_value FROM modx_user_settings WHERE setting_name = 'manager_login_startup' and user = $_SESSION['internalKey']
                    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