We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17016
    • 138 Posts
    After we activated Captcha in the settings we cannot log in the backend of our revo-installation anymore. The displayed error is: "$_SESSION Variable not set".

    Does anybody now the reason of this problem and how we can log in again?
      • 22303 MODX Staff
      • 10,725 Posts
      There is no Captcha in MODX Revolution core. You’ll have to elaborate...
        • 23360
        • 258 Posts
        Hello,
        Could resolve your issue, I have the same problem
          • 34178
          • 212 Posts
          No. Unfortunately not. We have no idea how to find the problem. Did you meanwhile solve the problem?
            • 3749
            • 24,544 Posts
            Did you install the Captcha plugin?
              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
              • 34178
              • 212 Posts
              Yes. Captcha 3.2.4 beta1.
                • 3749
                • 24,544 Posts
                Captcha sets a $_SESSION variable with the correct answer when it creates the image.

                When the user logs in, Captcha steps in again and checks the user's input against the $_SESSION variable. If the $_SESSION variable is not available, it prints the error message you're seeing.

                PHP sessions cookies are identified by a domain and path; so they are only valid for the path specified, and scripts in each path that have a session cookie are in control of their own unique session data.

                So if the user gets redirected to another domain (e.g., www.mysite.com versus mysite.com), the session data will be unavailable.

                Do you have any plugins that might be changing the URL? Your .htaccess file might also be a factor.
                  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
                  • 34178
                  • 212 Posts
                  Hi Bob,
                  for test-reasons I now disabled all our plugins step by step and I uninstalled and re-installed the captcha-plugin but without any success.

                  Maybe there is anything wrong in our php settings?

                  The phpinfo shows this:


                  gd

                  GD Support enabled
                  GD Version bundled (2.0.34 compatible)
                  FreeType Support enabled
                  FreeType Linkage with freetype
                  FreeType Version 2.3.7
                  T1Lib Support enabled
                  GIF Read Support enabled
                  GIF Create Support enabled
                  JPG Support enabled
                  PNG Support enabled
                  WBMP Support enabled
                  XBM Support enabled

                  Is there maybe anything missing?
                    • 3749
                    • 24,544 Posts
                    If you're seeing the Captcha image, those options shouldn't be a factor (and they look fine to me). I think it's definitely a sessions issue. I'm not much of an expert on session handling so maybe someone else can suggest what to check next.

                    You might try renaming .htaccess and turning FURLs off in System Settings to see if that makes a difference.
                      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
                      • 34178
                      • 212 Posts
                      OK. Thanks for this idea. I renamed the .htaccess and turned off the FURLs but it made no difference. Would be great if anybody has another idea what I could figure out to check what is wrong concerning our session handling...