We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36602
    • 8 Posts
    After I upgraded to 2.1.3 the proxy connect "auto login" function is no longer working. How it should work is, that Vanilla retrieves some relevant session data that has been generated to a web page.

    Formerly I used this code to generate the session data (I have copied this from the forums, more specifically from sotwell's tutorial on how to intergrate vanilla with MODx);
    <?php
    if(isset($_SESSION['webInternalKey'])) {
    $output = "UniqueID=" . $_SESSION['webInternalKey'] . "\n\n";
    $output .= "Name=" . $_SESSION['webShortname'] . "\n\n";
    $output .= "Email=" . $_SESSION['webEmail'] . "\n\n";
    return $output;
    }
    return;


    But it is no longer working. Has something changed, and if so, how should I modify the code?

    Thank you for your time!
      • 22303 MODX Staff
      • 10,725 Posts
      These session variables are deprecated and no longer set. Please use the API to get user information.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Just out of curiosity, how is the login user data stored in the session now?
          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