Re-adding the session_cookie_params
Using reworked version from @mattpass