We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31601
    • 57 Posts
    Building my own class and snippets for a login system that uses invitation codes. So, decided to use webloginPE to do the final registration in modx to use all the cool views, custom fields, etc. Anyways, I’m using a session variable to track the status of the login process so I can keep users from re-entering data and to throw a simple chunk output if the process is finished. However, this session variable was disappearing on me after the registration process was completed. So I took a look in the webloginPE class and lo and behold, in the method SessionHandler there is a session_destroy() call that was killing all my session variables. I’ve replaced it with unsets (same as that used if their is a manager login).

    Anyways, just thought I’d mention this if others run into this type of thing. I know that this snippet isn’t the bleeding edge, but I’ve too tight a production schedule to develop in Revo at this time, and this was the only thing out there that could save me a ton of work in coding up my own login system.
    • Yes, I have an installation or two of it that caused the same problem. It’s just a matter of not really having the time to go through the whole thing and fix all the little annoying problems it still has, especially since for the most part it serves its purpose well enough.
        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
        • 31601
        • 57 Posts
        I know how it goes with these things- thanks for putting this all together anyways!

        I have a quick question that sounds so lame (been developing with evo for 2+ years now!)-
        If I’ve created resources that are assigned to web document groups, I can’t preview them from the manager with the manager login. I have to login to the site to be able to view these pages. Not sure if that’s normal, but just checking!

        I was under the assumption that if I’m logged into the manager with the default admin account, I should be able to preview any pages regardless of their web group permission assignments.