You can try to set the value via an environment variable, see https://github.com/mendix/cf-mendix-buildpack
And be aware that there is a separate setting LongLivedSessionTimeout for offline PWAs: https://docs.mendix.com/refguide/custom-settings/