make API sessions not expire
Merge pull request #875 from opf/fix/4090_session_expires_setting_breaks_api

Make it so that API session do not expire.