This solution did not work for us as the session was still showing as "waiting for timeout" in SM05. The other solution (Thanks Achmad) to turn off 'ABAP HTTP Security Sessions Enabled' in the portal and disable the HTTP session management via SICF_SESSIONS on the ABAP backend did work.
Kind regards,
-Nathan