To my knowledge, it is not currently possible through the Mendix Portal. You’ll need to set them in SAP Cloud Cockpit.
In SCP, navigate to
space --> app --> user-provided variables
Your variable name should be formatted as described here, like this:
MXRUNTIME_SessionTimeout