We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45556
    • 1 Posts
    Hello,

    I want to set session_cookie_lifetime to a different value depending on one condition, in all others it should be the value that is set as default. For this purpose I tried setting the $config_options Array in config.inc.php in the modx core. Anyway, it has no effect, the setting from modx backend is still being used. The only possible solution is to delete session_cookie_lifetime in the backend but then values can only be set in config.inc.php.

    Is there a way to use custom session_cookie_lifetime while keeping the setting in the backend?

    Thank you!