We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18289
    • 4 Posts
    Hiya,
    I am building a site in modx, but also I have more pages on php, which connect with my documents in modx.
    When directing to the modx documents, I need to verify the session variables, but I noticed modx can’t see any session variables set outside..
    any ideas please?
    Thanks!!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The session name can be found in the config.inc.php file; this is the session used by MODx. Any external files wanting to use that session would need to set its session_name to the same one before starting the session. Would it be possible to access those php pages using snippets or plugins? In that case, the session would already be started by MODx.
        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
        • 18289
        • 4 Posts
        Great!! thanks. your help made me realize the problem was the session name, I just managed to read session variables however I want!