We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22827
    • 129 Posts
    Hello, I have a site where there are visitors, and I want to be able to maintain state across visits - preferences only nothing to warrent them creating an account.

    I tried to extend the session_cookie_lifetime setting, and store the data I need in $_SESSION but it appears that the PHPSESSID expire date doesn't reflect the change. So I am assuming I am on the wrong track. The modx doc says that this value is used for logins. As the visitors aren't logging in, I am guessing that this value would apply to a different cookie that isn't created in normal sessions.

    Is there a MODX way to keep a longer term cookie, or should I just use php setcookie?